Submit TSO Commands
Submit TSO Commands
IKJEFT01 is used to execute TSO commands via batch jobs. And also, REXX commands can be executed via batch Job.
Syntax -
...
//STEP01 EXEC PGM=IKJEFT01
//SYSTSIN DD *
<TSO-Commands>
/*
...
Practical Example -
Scenario - JCL to execute the TSO command to delete the dataset using IKJEFT01 utility.
JCL -
----+----1---+---2---+---3---+----4---+---5---+
...
//STEP01 EXEC PGM=IKJEFT01,
// DYNAMNBR=20,REGION=4096K
//STEPLIB DD DISP=SHR,DSN=DSNA10.DBAG.SDSNEXIT
// DD DISP=SHR,DSN=DSNA10.SDSNLOAD
//SYSTSIN DD *
DEL 'MATEPK.TEST.PDS'
/*
...