Mainframe Interview Questions and Answers on JCL

8/29/2009 No Comment

Mainframe Interview Questions covering JCL questions.

Why there is a necessity to specify the REGION parameter in a JCL step?
Answer : To override the REGION defined at the JOB card level REGION specifies the max region size REGION=0K or 0M or omitting REGION means no limit will be applied

Explain what does the TIME parameter signify in JCL ? Can you also tell what TIME=1440 mean ?
Answer : TIME parameter can be used to overcome S322 abends for programs that genuinely need more CPU time TIME=1440 means no CPU time limit is to be applied to this step

What do you mean by COND=EVEN ?
Answer : Means execute this step even if any of the previous steps, terminated abnormally

What do you mean by COND=ONLY ?

Answer : Means execute this step only if any of the previous steps, terminated abnormally

Can you tell how can you check the syntax of a JCL without running it?

Answer : TYPERUN=SCAN on the JOB card or use JSCAN

Explain what does IEBGENER do in JCL?

Answer : IEBGENER  is used to copy one SAM File to another Source Data Set should be described using SYSUT1 ddname Destination Data Set should be described using SYSUT2 IEBGENR can also do some reformatting of data by supplying control cards via SYSIN

Explain how will you send the output of a COBOL program to a member of a PDS?

Answer : Code the DSN as pds(member) with a DISP of SHR The DISP applies to the pds and not to a specific member.

Can you code instream data in a PROC ?

Answer : No, we cannot code.

Can you tell me how do you overcome this limitation ?
Answer : One way is to code SYSIN DD DUMMY in the PROC, and then override this from the JCL with instream data

How can you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

Answer : To run a non DB2 program, //STEP001 EXEC PGM=MYPROG To run a DB2 program, //STEP001 EXEC PGM=IKJEFT01 //SYSTSIN DD * DSN SYSTEM() RUN PROGRAM(MYPROG) PLAN() LIB() PARMS() /*

What is STEPLIB and JOBLIB in JCL? Explain its usage?

Answer : Specifies that the private library (or libraries) specified should be searched before the default system libraries in order to locate a program to be executed STEPLIB applies only to the particular step, JOBLIB to all steps in the job

Can you tell me what is the order of searching of the libraries in a JCL?

Answer : First any private libraries as specified in the STEPLIB or JOBLIB, then the system libraries such as SYS1LINKLIB The system libraries are specified in the linklist

What will happen if both JOBLIB and STEPLIB is specified ?

Answer : In that case JOBLIB is ignored.

When specifying multiple Data Sets in a JOBLIB or STEPLIB, what is the factor that determines the order?

Answer : The library with the largest block size should be the first one.

How do you change default proclib in JCL?

Answer : //ABCD JCLLIB ORDER=(MEMYPROCLIB,SYS1PROCLIB)

List the valid DSORG values ?

Answer : The valid DSORG values are PS - SAM, PO - Partitioned, IS - ISAM

What do you mean by S322 abend ?

Answer : S322 abend indicates a time out abend. Your program has taken more CPU time than the default limit for the job class could indicate an infinite loop.
Related Posts


No comments :

 

Aired | The content is copyrighted and may not be reproduced on other websites. | Copyright © 2009-2016 | All Rights Reserved 2016

Contact Us | About Us | Privacy Policy and Disclaimer