Mainframe – TSO, CLIST and REXX

SriniForum
SriniForum

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

Commonly used TSO commands:

Session mangagement
LOGON None Start a terminal session.
LOGOFF X, then LOGOFF End a terminal session.
HELP T (Tutorial) or PF1/13 Display help information.
SEND None Send a message to another user.
LISTBC None Display broadcast messages.
Data set management
EDIT 2 (Edit) Edit the contents of a data set or member.
LISTCAT 3.4 (DSLIST utility) List catalog entries.
LISTDS 3.2 or 3.4 (Data set or DSLIST utility) List data set information.
RENAME 3.2 or 3.4 (Data set or DSLIST utility) Rename a data set.
DELETE 3.2 or 3.4 (Data set or DSLIST utility) Delete a data set.
SMCOPY 3.3 (Move/Copy utility) Copy a data set or member.
PRINTDS 3.6 (Hardcopy utility) Print the contents of a data set or member.
Data set allocation
ALLOCATE 3.2 (Data set utility, but not quite the same) Allocate a data set.
FREE None Free an allocated data set.
LISTALC None List data sets currently allocated.
ALTLIB None Activate an alternate procedure library.
Foreground program development
CALL None Execute a load module.
LINK 4.7 (Foreground link-edit) Link-edit a compiled program.
LOADGO None Link-edit and execute a compiled program.
TEST None Test a program.
Background jobs
SUBMIT 5 (Batch processing) Submit a job for background processing.
STATUS 3.8 (Outlist utility) Display the current status of submitted jobs.
OUTPUT 3.8 (Outlist utility) Get the output from background jobs.
CANCEL 3.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 a 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

Advertisements

Author: Srini

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