Thursday, December 8, 2011

JCL : Interview questions

  1. How should be the field definition in Linkage section when passing data thru “PARM”.
  Ans.: To pass date “12012003” through PARM, the field definition should be As follows.

  01 LINK-DATE.
     05 LK-MDCY-LENGTH COMP PIC S9(04).  
     05 LK-MDCY-DATE PIC 9(08).
  1. Can a PROC contain another PROC ?.
  Ans : Yes.
  1. What is the difference between “KEEP” and “CATLG”.
  Ans : KEEP : Data set will not be cataloged. The dataset information will not be available in Mastre catalog and user catalogs. But data set information will be available in “VTOC” of the DASD where the dataset resides. CATALG : Dataset will be available in both catalog and VTOC.
     
  4. What is the use of “INTRDR”.

     ANS : It used is to submit the Job.
     
     E,.g //JCL DD SYSOUT=(*,INTRDR)
     Whatever the contents available in file “JCL” will be submitted.
  1. when “COND=(4,LE)” is coded in JOB card, wthat will happen ?.
     ANS : Job will be teminated, when any of the step in job gives return code >= 4
      
  6. To run a job infinitely, what should we do ?

  ANS : code TIME = NOLIMIT, or TIME=1440 in JOB card. Job will run forever.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.