Wednesday 20 June 2012

Procedures in jcl

Procedures in jcl:

 Procedures are reusable objects. procedures are called and reused in where in
 jcl  program.

Jcl interview questions and answers for what are procedures in jcl.
how we define procedures in jcl. how many types of procedures are in jcl.

Procedures are reusable object which is called any where in jcl. procedures
should not contain job lib. procedures only contain step lib.
sysin DD* not used in procedures. procedure are two types they are
   1)Catalog procedure
   2)In stream procedure.

Catalog procedure:
   Catalog procedure is procedure which can be define oust side  the jcl program
   and call it in any where in program is called catalog procedure.
   Sys in dummy is used in catalog  procedure.

  Example for Catalog procedure:
   oza91.DEF.Proclib(XYZ)
   //step01  Exec pgm= p1
  //DD1      DD   Dsn= 0ZA91.ABC.orders., disp= shr
  //step02   Exec  pgm= p2
  //DD2      DD   Dsn= 0ZA93.ASD.data, disp= shr

 //job001  job   (ABC),'XYZ'
 //proclib  joblib order= 0ZA91.prod.proclib, disp=shr
 //step01  Exec  XYZ
 //Sysout DD  sysout= *

In stream procedure:
  In stream procedure is a procedure which can write with in a job itself is called
  as In stream procedure. In stream procedure can be write with in the program.

Catalog procedure can't place in in stream procedure. 

No comments:

Post a Comment