Interview Questions   Tutorials   Discussions   Programs   

JCL - What is a PROC? What is the difference between an in stream and a catalogued PROC?

asked mar September 8, 2014 12:45 PM  

What is a PROC? What is the difference between an in stream and a catalogued PROC?


1 Answers

answered By Mswami   0  

PROC stands for procedure. JCL Procedures are set of statements inside a JCL grouped together to perform a particular function. Usually, the fixed part of the JCL is coded in a procedure. The varying part of the Job is coded within the JCL.

You can use a procedure to achieve parallel execution of a program using multiple input files. A JCL can be created for each input file, and a single procedure can be called simultaneously by passing the input file name as a symbolic parameter.

In JCL, We have an important concept reusability in the form of Instream and Cataloged procedures, Often, in work environments users can utilized same JCL. Using instream / cataloged procedures we can reuse the jcl code which was stored in another data set, in our data set.


A JCL Procedure is a pre-written segment of code, that you can include in your JOB. You code instream data set within the job and use it in that job as many times as you want.

  • Instream procedure should be defined , before any EXEC statement defined

  • Instream procedure startes with PROC and ends with PEND statements

  • Instream procedure is executed when we main jcl called.


Pre-written segment of code (which is stored as an member of PDS), which you can use as many times you want in any job in the system. IBM supplies a utility program called IEBUPDTE; this program places cataloged procedures into partitioned data sets. These procedures are placed inside a system library called SYS1.PROCLIB.

  • When you executing CATALOGED PROCEDURE, If you not specified where it is with JCLLIB statement , it will serach for this procedure in system procedure library SYS1.PROCLIB

  • There many IBM-supplied procedures that compile, link, and run programs.

   add comment

Your answer

Join with account you already have



Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!