The PGM parameter in JCL is used on the EXEC statement to specify the name of the program to be executed in a job step. It identifies the specific program module from a program library that the system should load and run.
1//stepname EXEC PGM=program-name
1//STEP1 EXEC PGM=IEFBR14
Executes the system utility program IEFBR14
1//STEP2 EXEC PGM=SORT,PARM='EQUALS,FILSZ=E4000'
Executes the SORT program with parameters
1//COMPSTEP EXEC PGM=IKFCBL00,REGION=4M
Executes the COBOL compiler with a 4MB region size
1//STEP3 EXEC PGM=IDCAMS,COND=(4,LE)
Executes IDCAMS program only if all previous steps completed with a condition code less than or equal to 4
The system searches for the program in the following order: