Introduction
Introduction
IKJEFT01 is an IBM mainframe utility commonly used to execute TSO commands in a batch job. This utility allows users to perform TSO functions without being logged into a TSO session, which can be useful for automating tasks. The same utility is used to run the TSO/E commands is called Terminal Monitor Program (TMP). The terminal monitor program may be one of the following - IKJEFT01, IKJEFT1A, or IKJEFT1B. IKJEFT1A and IKJEFT1B are not utilities and are alternates (aliases) to IKJEFT01.
Submitting a batch job with the utility IKJEFT01 can execute the TSO commands. The EXEC format is -
//stepname EXEC PGM=IKJEFT01,DYNAMNBR=nn,PARM='command'
Syntax -
//Job-card
//*
//STEP01 EXEC PGM=IKJEFT01
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSTSIN DD *
<Operands>
/*
- SYSPRINT - Specifies where all utility related messages are written.
- SYSTSPRT - Defines where the output of the commands will go.
- SYSUDUMP - Specifies the output dataset where the dump is placed in case of an ABEND. Data set can be used instead of an SYSOUT.
- SYSTSIN – Contains the TSO commands or points to a dataset with the commands.
Functions -
IKJEFT01 performs the below functions –
- Submit TSO commands.
- BIND COBOL + DB2 program.
- Runs COBOL + DB2 program.
- Unload DB2 table.
Return Codes -
Here’s an overview of common return codes for IKJEFT01 -
- 0: Successful execution - All commands or programs processed by IKJEFT01 ran without any issues.
- 4: Warning - The command or program executed, but there were minor issues.
- 8: Error - There was a significant issue that likely affected the execution of the command or program.
- 12: Severe error - Specifies a major failure that prevented the command or program from executing correctly.
- 16: Terminal error - This is the most severe error and specifies that a severe failure occurred.