Chapter Contents

Previous

Next
SAS Companion for the OS/390 Environment

Macro Statements

The following macro statements have OS/390-specific aspects:

%KEYDEF
is analogous to the KEYDEF command in the windowing environment. It enables you to define function keys. The form of this statement is

%KEYDEF <'>key-name<'> <'definition'>;

The number of keys available depends on your terminal. Most terminals that are used under the OS/390 operating environment have either 12 or 24 function keys. To define a key, specify the key-name (F1 through F24) of the key and the new definition.

If you omit the definition, SAS prints a message in the log showing the current definition of the key; otherwise, the key's definition is changed to whatever you specified.

%TSO
executes TSO commands during an interactive SAS session. It is similar to the TSO statement. (See TSO.) The %TSO statement enables you to execute TSO commands immediately. It places the operating environment return code in the automatic variable SYSRC. You can use the %TSO statement either inside or outside a macro. The form of the statement is

%TSO <command>;

You can use any TSO command or any sequence of macro operations that generate a TSO command. If you omit the command, your SAS session is suspended and your OS/390 session is placed in TSO submode. To return to the SAS session, enter either RETURN or END.

If you execute a %TSO statement on an operating environment other than OS/390, the statement is treated as a comment.

%SYSEXEC
executes TSO commands during an interactive SAS session. The form of the statement is

%SYSEXEC <command>;

Under OS/390, the %SYSEXEC statement works exactly like the %TSO statement. The two statements are different only if you transport your SAS program to a different operating environment. Because %SYSEXEC statements are recognized on multiple operating environments, each operating environment expects commands that are appropriate for that operating environment.


Chapter Contents

Previous

Next

Top of Page

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