Difference between JCL and JCL Proc in IBM Mainframe



Job Control Language (JCL) is used to tell what program to execute,followed by program inputs and outputs. JCL defines how a job is executed on the mainframe.

There are three basic JCL statements:


1. The JOB statement is the first in a JCL stream. Its format is // jobname, keyword JOB, accounting information in brackets and keywords, MSGCLASS, MSGLEVEL, NOTIFIY, CLASS, etc.

2. The EXEC statement identifies the program to be executed via a PGM=program name keyword. Its format is //jobname EXEC PGM=program name. The PARM= keyword can be used to pass external values to the executing program.

3. The DD statement links the external dataset name (DSN) to the DDNAME coded within the executing program. It links the file names within the program code to the file names know to the MVS operating system. The syntax is // ddname DD DSN=dataset name. Other keywords after DSN are DISP, DCB, SPACE, etc.





PROC stands for procedure. It is ‘canned’ JCL invoked by a PROC statement.

If a segment of JCL is used repeatedly it may be coded once as a PROC (or JCL Procedure) and then used by many different steps within the job.


 An instream PROC is presented within the JCL; a catalogued PROC is referenced from a proclib partitioned dataset.

No comments:

Post a Comment