Chapter Contents |
Previous |
Next |
SASTASK |
Category: | Interface to SAS Software |
Syntax | |
Example |
Syntax |
rc=SASTASK(); |
1 | A SAS procedure is active. |
0 | No SAS procedure is active. |
Type: Numeric
Example |
Determine whether a SAS procedure is currently running before attempting to submit code to SAS software. If so, display a message to inform the user why the code cannot be submitted.
if (sastask()) then _msg_='Another procedure is currently active.'; else do; submit continue; data a; x=1; run; endsubmit; end;
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.