Chapter Contents

Previous

Next
SAS Companion for the CMS Environment

Productivity Aids for Interactive SAS Sessions under CMS

A set of sample execs is provided with SAS to show how the SAS interface to REXX can be used to improve productivity by integrating CMS commands such as FILELIST. Each of the following sample SASMACROs issues the corresponding CMS command:
DIRLIST SASMACRO
FILELIST SASMACRO
MACLIST SASMACRO
RDRLIST SASMACRO
XEDIT SASMACRO

Like other SASMACROs, these commands can be issued as SAS statements without the prefix of X or CMS. To issue autocall macros as SAS statements, specify the SAS system option MAUTOSOURCE. To invoke SASMACROs from the windowing environment command line, see Invoking a SASMACRO from the Windowing Environment Command Line.

In addition, you can issue commands from within CMS applications to interact directly with the SAS session.

While any of the preceding SASMACROs are active, the following special commands are supported from within CMS applications:

DM <command>
is used on an XEDIT command line or an xxxLIST command line to switch the mode to the SAS windowing environment in a SAS subset and to execute a command. For example, DM KEYS switches to the KEYS window.

When you submit the CMSRETURN statement, control returns to the XEDIT session or to the xxxLIST menu. This command is implemented by the SAS$DM exec.

INCLUDE
is used on a FILELIST file line to include the specified FILELIST file into the Program Editor window. Control returns to the FILELIST menu. This command is implemented by the SAS$INCL exec.

PGM
is used on an XEDIT command line or an xxx LIST command line to switch the mode to the Program Editor window as a SAS subset. When you submit the CMSRETURN statement, control returns to the XEDIT session or to the xxxLIST menu. This command is implemented by the SAS$PGM exec.

SUBMIT
is used on an XEDIT command line or a FILELIST file line to submit to SAS the current XEDIT file or specified FILELIST file. Control returns to the XEDIT session or to the FILELIST menu. This command is implemented by the SAS$SUB exec.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.