Chapter Contents


SAS Companion for the OS/390 Environment

Invoking SAS in the OS/390 Environment

You can invoke SAS in interactive mode under TSO using the SAS CLIST, or you can invoke SAS in batch mode with the SAS cataloged procedure, or you can log on to SAS directly and bypass the TSO terminal monitor program.

Invoking SAS under TSO: the SAS CLIST

To invoke SAS under TSO, you execute the SAS CLIST by typing a command (usually SAS) at the READY prompt. The SAS CLIST is an external file that contains TSO commands and control instructions.

At each site, the command that you use and the SAS CLIST itself may have been modified by your local SAS Support Consultant, so you should ask your consultant for site-specific information about the CLIST.

The SAS CLIST starts a SAS windowing environment session, an Explorer session, an interactive line mode session, or a noninteractive session, depending on the defaults that have been specified in the CLIST. To override the mode of running SAS that is specified in the CLIST, you use commands similar to those shown in Commands for Invoking SAS. (Again, the exact commands that you use may be site-specific.)

Commands for Invoking SAS
Mode How to Invoke How to Terminate Description
SAS windowing environment sas options('dms')
bye or endsas
enables you to write and execute SAS programs and to view the SAS log and SAS procedure output in an interactive windowing environment. If this is the default at your site, then you can invoke it by entering sas with no options.
Explorer sas options('explorer') bye or endsas enables you to manipulate SAS data and files visually, launch SAS applications, and access SAS windowing environment windows and Output Delivery System hierarchies.
interactive line mode sas options('nodms')
/* or endsas; statement prompts you to enter SAS statements at your terminal, one line at a time.
noninteractive mode sas input(```''')

n/a executes under interactive OS/390, but it is called noninteractive because the program runs with no intervention from the terminal.

Invoking SAS in Batch Mode: the SAS Cataloged Procedure

To invoke SAS during a batch job, use a JCL EXEC statement that executes the SAS cataloged procedure. The SAS cataloged procedure invokes SAS. By specifying parameters in the JCL EXEC statement, you can modify the way in which SAS is invoked.

At each site, the JCL EXEC statement that you use and the cataloged procedure itself may have been modified by your local SAS Support Consultant, so you should ask your consultant for site-specific information.

Logging On to the SAS System Directly

OS/390 sites can choose to substitute SAS for the standard TSO terminal monitor program, enabling users to log on to SAS directly. If SAS comes up automatically when you log in, then your system may have already been set up to log on to SAS directly.

By automatically invoking the SAS System or a SAS application when users log on, site administrators can insulate users from the TSO environment. Because SAS is running as its own terminal monitor program, TSO commands are not accessible to users. This reduces memory usage slightly.

This method of invoking SAS also provides the following advantages:

Your local SAS Support Consultant will find complete information about this method of invoking SAS in the installation instructions for SAS in the OS/390 environment.

Chapter Contents



Top of Page

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