SASPYTHON
SASPYTHON

Reputation: 1621

How to close X command window in SAS program?

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 ; 

enter image description here

how can I close/exit this X command in SAS Code?

Upvotes: 1

Views: 1666

Answers (1)

Joe
Joe

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 console
  • NOXWAIT: the window closes on its own when it has completed

You 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

Related Questions