Chapter Contents

Previous

Next
SAS Companion for the CMS Environment

Productivity Aids for Interactive SAS Sessions on CMS

A set of sample execs are provided with SAS to show how the SAS interface to REXX can be used to integrate CMS commands like FILELIST. Each of the following sample SASMACROs invokes the corresponding CMS command:
DIRLIST SASMACRO
FILELIST SASMACRO
MACLIST SASMACRO
RDRLIST SASMACRO
XEDIT SASMACRO

Like other SASMACROs, these can be issued as SAS statements without having to prefix them with X or CMS. In addition, you can issue commands from within CMS applications to interact directly with the SAS session. While any of the SASMACROs listed above 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 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 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 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.