Chapter Contents

Previous

Next
TSO

TSO



Issues a TSO command or invokes a CLIST or a REXX exec during a SAS session

Valid: anywhere
OS/390 specifics: all


Syntax
Details
TSOEXEC
Entering TSO Submode
See Also

Syntax

TSO <command >;

command
can be a system command enclosed in quotes, an expression whose value is a system command, or the name of a character variable whose value is a system command. Under OS/390, "system command" includes TSO commands, CLISTs, and REXX execs.


Details

The TSO statement is similar to the TSO (or SYSTEM) CALL routines, the TSO (or X) command, the TSO (or SYSTEM) function, and the %TSO (or %SYSEXEC) macro statement.

SAS executes the TSO statement immediately. Under OS/390, TSO is an alias for the X statement. On other operating environments, the TSO statement has no effect, whereas the X statement is always processed.

You can use the TSO statement to issue most TSO commands or to execute CLISTs or REXX execs. However, you cannot issue the TSO commands LOGON and LOGOFF, and you cannot execute CLISTs that include the TSO ATTN statement.

Note:   You cannot use the TSO statement in a batch job.  [cautionend]

TSOEXEC

TSOEXEC is a TSO command that is used to invoke authorized commands. At OS/390 sites that run under later releases of TSO/E, you can invoke authorized commands such as RACF commands by submitting the following statement:

tso tsoexec authorized-command ;

For more information, see the IBM document TSO Extensions Command Reference.

Entering TSO Submode

You can also use the TSO statement to go into TSO submode during a SAS session.

To start the submode, place the TSO statement in your program without specifying any options. (In the windowing environment, enter TSO submode by issuing TSO as a command-line command. See TSO.) When the statement is executed, SAS goes into TSO submode and prompts you for TSO commands. Any commands that you enter in TSO submode are processed by TSO; they are not processed as SAS statements. They can be any length; however, if the command is longer than one line, you must enter a TSO continuation symbol.

To return to the SAS session, enter RETURN, END, or EXIT. Any characters that follow the RETURN, END, or EXIT subcommand are ignored. An END command that occurs within a CLIST terminates the command procedure without ending the TSO submode.

See Also


Chapter Contents

Previous

Next

Top of Page

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