Chapter Contents |
Previous |
Next |
SAS Companion for the OS/2 Environment |
The following automatic macro variables have values that are specific to OS/2:
FORE
under OS/2.For example, consider the following statements:
options noxwait; x 'dirf'; /* Invalid OS/2 command */ %put This OS/2 status is &sysrc; x 'dir'; /* Valid OS/2 command */ %put The corrected OS/2 status is &sysrc;The following lines are written to the SAS log:
This OS/2 status is 1 The corrected OS/2 status is 0
The OPTIONS statement turns the XWAIT option off so that the OS/2 command prompt window disappears automatically without your having to type EXIT to return to your SAS session. If you run this example with the XWAIT option on, it does not work because you get a value of 0 in both cases; 0 is the return code for the EXIT command. If NOXSYNC is on, the value of SYSRC is automatically 0.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.