IKJEFT01 - Introduction

TSO/E commands needs a program to execute them from background.

The background program to execute the TSO/E commands is called as Terminal Monitor Program (TMP).

The terminal monitor program may be one of the following: IKJEFT01, IKJEFT1A, or IKJEFT1B.

IKJEFT1A and IKJEFT1B are not utilities but are rather two alternate entry points for the TSO Terminal Monitor Program initialization routine IKJEFT01.

The DB2 utilities were created to run under TSO, either under a terminal session or in batch.

The EXEC (execute) statement is used to execute program IKJEFT01 or the alternate programs IKJEFT1A and IKJEFT1B.

The EXEC format is -

//stepname EXEC PGM=IKJEFT01,DYNAMNBR=nn,PARM='command'

"stepname" is optional and can be used as a step identifier in program consisting of more than one step.

"EXEC" is the JCL term to identify this type of statement.

"PGM=" specifies the module being executed.

In addition to IKJEFT01, there are two other entry points available for background execution that provide additional return code and abend support.

The differences among the three entry points are: PGM=IKJEFT01.

When a command completes with a non-zero return code, the program IKJEFT01 goes to the next command.

When a command abends, the IKJEFT01 step ends with a condition code of 12.

Syntax: -

//Job Card
//* IKJEFT01 UTILITY                       
//STEP01   EXEC PGM=IKJEFT01                                   
//SYSPRINT DD  SYSOUT=*                                        
//SYSTSPRT DD  SYSOUT=*                                        
//SYSUDUMP DD  SYSOUT=*                                        
//SYSTSIN  DD  *                                               

  • SYSPRINT DD - specifies a sysout class where all product usage reports produced by IBM are written.
  • SYSTSPRT DD - Used to control the output from the background job.
  • SYSUDUMP - specifies the output class where the dump is placed in the event of an ABEND. A data set name may be used instead of a sysout class.
  • SYSTSIN – Used to specify the data to follow consists of executable commands and/or subcommands.

IKJEFT01 performs the below functions –

  • Submits TSO commands.
  • Binds cobol + db2 program.
  • Runs cobol + db2 program.
  • Unloads Db2 table.