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
z/OS, 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.
Note: If any of these TSO statements
are issued in a background environment, the command is not issued
and the return code is set to 0.
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.
Nor can you issue authorized commands, such as some RACF commands.
However, you can use the TSOEXEC command to issue authorized commands,
as in this example:
TSO TSOEXEC ALTDSD ...;
In
addition, you can use the TSO statement to issue the following UNIX
System Services shell commands:
cd
,
pwd
,
and
umask
. The shell command names
must be specified in lowercase.