Reputation: 1621
For example, I have a code like this below.
DATA _null_ ;
x 'start https://www.google.com/';
RUN ;
DATA _null_ ;
asleep = Sleep(20) ; /* sleep 20 seconds */
RUN ;
To run this code, I have to close X command manually, like clicking "X" or type "EXIT",then SAS starts to execute below the code
DATA _null_ ;
asleep = Sleep(20) ; /* sleep 20 seconds */
RUN ;
how can I close/exit this X command in SAS Code?
Upvotes: 1
Views: 1666
Reputation: 63424
The XWAIT system option controls the behavior of SAS when it spawns an x
window.
XWAIT
(default): requires the user to type EXIT in the consoleNOXWAIT
: the window closes on its own when it has completedYou may also want to look at the XSYNC option, which controls whether or not SAS will continue executing other code statements after the x
invocation without waiting for it to close.
Upvotes: 2