Introduction (for Experienced)


Summary
  • TSO/E commands need a program to execute in the background to complete the task.
  • The background program 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
//*************************************************************
//* IKJEFT01 UTILITY                       
//*************************************************************
//STEP01   EXEC PGM=IKJEFT01                                   
//SYSPRINT DD  SYSOUT=*                                        
//SYSTSPRT DD  SYSOUT=*                                        
//SYSUDUMP DD  SYSOUT=*                                        
//SYSTSIN  DD  *                                               
  <Operands>                                  
/*
  • SYSPRINT DD - Specifies an SYSOUT DSN where all product related messages are written.
  • SYSTSPRT DD - Used to control the output from the background job.
  • 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 – Used to specify the executable commands and/or subcommands.

Return Codes -


  • IKJEFT01 goes to the following command when a command completes with a non-zero return code, the program.
  • IKJEFT01 step ends with a condition code of 12 when the command abends.
  • IKJEFT1A and IKJEFT1B will generally stop processing when a command returns a non-zero return code.

Functions -


IKJEFT01 performs the below functions –

  • Submit TSO commands.
  • BIND COBOL + DB2 program.
  • Runs COBOL + DB2 program.
  • Unload DB2 table.