Previous Page | Next Page

Macro Facility under OpenVMS

Macro Statements under OpenVMS

The following macro statement has operating dependencies that are specific to the OpenVMS environment:

%SYSEXEC

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>;
where DCL-command can be any OpenVMS operating environment command or any sequence of macro operations that generates an operating environment 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

Previous Page | Next Page | Top of Page