FAQs(31 to 45)

31)Why do you want to specify the REGION parameter in a JCL step?

A) 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.

32)What does the TIME parameter signify ? What does TIME=1440 mean ?

A) 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.

33)What is COND=EVEN ?

A) Means execute this step even if any of the previous steps, terminated abnormally.

34)What is COND=ONLY ?

A) Means execute this step only if any of the previous steps, terminated abnormally.

35)How do you check the syntax of a JCL without running it?

A) TYPERUN=SCAN on the JOB card or use JSCAN.

36)What does IEBGENER do?

A) Used to copy one QSAM file to another. Source dataset should be described using SYSUT1 ddname. Destination dataset should be described using SYSUT2. IEBGENR can also do some reformatting of data by supplying control cards via SYSIN.

37)How do you send the output of a COBOL program to a member ofa PDS?

A) Code the DSN as PDS (member) with a DISP = SHR. The DISP applies to the PDS and not to a specific member.

38)I have multiple jobs ( JCLs with several JOB cards ) in a member.What happens if I submit it?

A) Multiple jobs are submitted (as many jobs as the number of JOB cards).

39)I have a COBOL program that Accepts some input data.How do you code the JCL statement for this?

( How do you code instream data in a JCL? )


input data

input data


40)Can you code instream data in a PROC ?

A) No.

41)How do you overcome this limitation ?

A) One way is to code SYSIN DD DUMMY in the PROC, and then override this from the JCL with instream data.

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

A) To run a non DB2 program,


To run a DB2 program,





PLAN(.....) LIB(....) PARMS(...)


43)What is STEPLIB, JOBLIB?What is it used for? 

A) 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.

44)What is order of searching of the libraries in a JCL? 

A) First any private libraries as specified in the STEPLIB or JOBLIB, then the system libraries such as SYS1.LINKLIB. The system libraries are specified in the link list.

45)What happens if both JOBLIB and STEPLIB is specified ?

A) JOBLIB is ignored.