How to execute TSO, CLIST and REXX commands

TSO – is time sharing option. We can execute TSO commands through ISPF interface.

SriniForum

TSO, CLIST and REXX

Commonly used TSO commands:

Session mangagement
LOGONNoneStart a terminal session.
LOGOFFX, then LOGOFFEnd a terminal session.
HELPT (Tutorial) or PF1/13Display help information.
SENDNoneSend a message to another user.
LISTBCNoneDisplay broadcast messages.
Data set management
EDIT2 (Edit)Edit the contents of a data set or member.
LISTCAT3.4 (DSLIST utility)List catalog entries.
LISTDS3.2 or 3.4 (Data set or DSLIST utility)List data set information.
RENAME3.2 or 3.4 (Data set or DSLIST utility)Rename a data set.
DELETE3.2 or 3.4 (Data set or DSLIST utility)Delete a data set.
SMCOPY3.3 (Move/Copy utility)Copy a data set or member.
PRINTDS3.6 (Hardcopy utility)Print the contents of a data set or member.
Data set allocation
ALLOCATE3.2 (Data set utility, but not quite the same)Allocate a data set.
FREENoneFree an allocated data set.
LISTALCNoneList data sets currently allocated.
ALTLIBNoneActivate an alternate procedure library.
Foreground program development
CALLNoneExecute a load module.
LINK4.7 (Foreground link-edit)Link-edit a compiled program.
LOADGONoneLink-edit and execute a compiled program.
TESTNoneTest a program.
Background jobs
SUBMIT5 (Batch processing)Submit a job for background processing.
STATUS3.8 (Outlist utility)Display the current status of submitted jobs.
OUTPUT3.8 (Outlist utility)Get the output from background jobs.
CANCEL3.8 (Outlist utility)Cancel a submitted job.

CLIST – It is a command list. By entering TSO commands in sequence, in a member of PDS, we can execute CLIST member. So that we can execute all the commands in sequence.

How to execute CLIST

Allocate and activate your user CLIST library when you start a session

TSO ALLOCATE DDNAME(SYSUEXEC) DSN(TEST.CLIST) SHR REUSE
TSO ALTLIB ACTIVATE USER(EXEC)

Enter % followed by the name of the CLIST to be run

TSO %MKTGTEST

Read complete guidance on CLIST.

REXX – REXX is procedural language. This is a combination of REXX statements and TSO commands.

How to execute REXX Procedure

Allocate and activate your user EXEC library when you start a session

TSO ALLOCATE DDNAME(SYSUEXEC) DSN(TEST.EXEC) SHR REUSE
TSO ALTLIB ACTIVATE USER(EXEC)

Enter % followed by the name of the REXX procedure to be run

TSO %MKTGTEST

Read REXX guidance here

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.