Running an application under batch

Under batch, you can request the execution of an executable program in an EXEC statement in your JCL. The EXEC statement marks the beginning of each step in a job or procedure, and identifies the executable program or cataloged procedure that executes.

The general form of the EXEC statement is:
//[stepname] EXEC PGM=program_name
The program_name is the name of the member or alias of the program to be executed. The specified program must be one of the following:
  • An executable program that is a member of a private library specified in a STEPLIB DD statement in your JCL.
  • An executable program that is a member of a private library specified in a JOBLIB DD statement in your JCL.
  • An executable program that has been loaded into shared system storage, either the Link Pack Area (LPA) or the Extended Link Pack Area (ELPA).
  • An executable program that is a member of a system library. Examples of system libraries are SYS1.LINKLIB and libraries specified in the LNKLST.

Unless you have indicated that the executable program is in a private library, it is assumed that the executable program is in a system library and the system libraries are searched for the name you specify.