Chapter Contents |
Previous |
Next |
SAS Companion for the Microsoft Windows Environment |
The following automatic macro variables have values that are specific to Windows:
FORE
under Windows.Operating Environment Information for Windows 95 Users: When using SYSJOBID under Windows 95, you may receive an overflow error message if SYSJOBID is used in a conditional statement.
Note: This macro variable is useful only with Windows
NT. Windows 95 does not allow the SAS System to retrieve the status of the
command, and always returns 0.
For example, consider the following statements:
options noxwait; x 'dirf'; /* Invalid Windows command */ %put This Windows status is &sysrc; x 'dir'; /* Valid Windows command */ %put The corrected Windows status is &sysrc;The following lines are written to the SAS log:
This Windows status is 1 The corrected Windows status is 0
The OPTIONS statement turns the XWAIT option off so that the Windows 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.