Macro Facility under OpenVMS |
The following macro statement has operating dependencies that are specific to the OpenVMS environment:
issues DCL commands immediately and places the operating environment return code in the automatic variable SYSRC. The syntax of the %SYSEXEC statement is
%SYSEXEC <DCL-command>; |
The %SYSEXEC statement is similar to the X statement, which is described in Issuing DCL Commands during a SAS Session. You can use the %SYSEXEC statement either inside a macro or in open code.
Omitting DCL-command puts you in an interactive OpenVMS subprocess and sets the value of the SYSRC automatic variable to 0. To return to your SAS session, type LOGOFF at the subprocess prompt.
The following is an example of %SYSEXEC:
%sysexec show time;The output looks something like this:
12-JAN-1998 16:02:52
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.