You are on page 1of 11

JCL(MCQ)

Q 1 - On how many byte records JCL statements are coded?


A - 16
B - 44
C - 80
D 32

Q 2 - In Job processing, what happens in Purge stage?


A - Selection of Initiator for execution of Job
B - Job statement is converted into an interpreted text to be understood by JES
and stored into a dataset, which we call as SPOOL
C - Moving the output of Job to spool output
D - Allocated resources and the JES SPOOL space is released

Q 3 - What is the purpose of coding NOTIFY parameter in job statement?


A - Assign a job-class to a Job which decides the nature of job
B - To specify the output destination for the system and Job messages when the
job is complete
C - To restart a job from a particular step
D - To notify a user

Q 4 - When the procedure is separated out from the JCL and coded in a different
data store, it is called a Cataloged Procedure. A PROC statement is not
mandatory to be coded in a cataloged procedure. State whether true or false?
A - True
B - False

Q 5 - What is use of DISP parameter in DD statement?

A - Space required for the dataset


B - Physical characteristics of a dataset
C - Disposition of dataset
D - Physical Dataset Name

Q 6 - Which utility is used for copy, merge, compress, backs up, or restores
partitioned data sets?
A - IEBGENER
B - IEBCOPY
C - IEBCOMPR
D - IEBUPDTE

Q 7 - LIMIT option in GDG's specifies the maximum number of versions that the
GDG base can hold. State whether true or false?
A - False
B - True

Q 8 - What statements are invalid in a procedure?


A - JOB statement
B - Delimiter statement
C - Null statement
D - All of these

Q 9 - What prefix character we use for symbolic parameter?


A-%
B-@
C-&
D-$
Q 10 - What is the output of following JCL?

//STEP1 EXEC PGM = IEBEDIT


//SYSUT1 DD DSN = XXXXXX.XXXX.XXXX(XXXXXXXX), DISP = SHR
//SYSUT2 DD SYSOUT = (*,INTRDR)
//SYSPRINT DD SYSOUT = *
//SYSIN

DD *

EDIT TYPE = INCLUDE, STEPNAME = (STEP3,STEP7)


/*
A - It will execute only STEP1
B - It will exclude STEP3 & STEP4 from execution
C - It will execute only STEP3 & STEP4
D - None of these

Q11 - What is JCL?


A - JCL is a set of control statements which provides the specifications necessary
to process a job.
B - JCL is a interface between programs & MVS operating system.
C - JCL is used to run COBOL programs on IBM Mainframes.
D - All of these.

Q12 - How do you code a Null statement?


A - /* starting in column 1
B - //* starting in column 1
C - // starting in column 1
D - Blank line

Q13 - What is the purpose of coding PRTY parameter in job statement?


A - Specifies the address space required to run a job step within the job

B - Specifies the time span to be used by the processor to execute the job
C - To specify the priority of the job within a job class
D - To restart a job from a particular step

Q14 - A JOBLIB statement is used in order to identify the location of the program
to be executed in a JCL. The JOBLIB statement is specified after the JOB
statement and before the EXEC statement. This can be used only for the in
stream procedures and programs. State whether true or false?
A - True
B - False
Q15 - What is use of SPACE parameter in DD statement?
A - Space required for the dataset
B - Physical characteristics of a dataset
C - Disposition of dataset
D - Physical Dataset Name

Q16 - How you will concatenate the dataset in JCL?


A - Code the DD statements continuously & give DDNAME only for first DD
B - Code the DD statements continuously & give the same DDNAME for all DD
statements
C - Both A & B
D - None of these

Q17 - The GDG versions can have same or different DCB parameters. An initial
model DCB can be defined to be used by all versions, but it can be overridden
when creating new versions. State whether true or false?
A - False
B True
Q18 - What statements are invalid in a procedure?
A - JOB statement

B - Delimiter statement
C - Null statement
D - All of these

Q 19 - How do we pass values to a program through JCL?


A - In-stream data
B - PARM
C - Both A & B
D - Not possible

Q 20 - On how many byte records JCL statements are coded?


A - 16
B - 44
C - 80
D - 32

Q 21 - What is the purpose of coding CLASS parameter in job statement?


A - Assign a job-class to a Job which decides the nature of job
B - To specify the output destination for the system and Job messages when the
job is complete
C - To restart a job from a particular step
D - To notify a user

Q 22 - How much time Step2 will have for execution, if Step1 will take 2.5
minutes?
//TXXXXXX JOB (XXXXX), XXXX, TIME = 4
//STEP1 EXEC PGM = PR1, TIME = 4
//STEP2 EXEC PGM = PR2, TIME = 0
A-4

B-0
C - 1.5
D - 2.5

Q 23 - A STEPLIB statement is used in order to identify the location of the


program to be executed within a Job Step. The STEPLIB statement is specified
after the EXEC statement and before the DD statement of the job step. State
whether true or false?
A - True
B - False

Q 24 - Which utility is used to create, delete, rename, catalog, uncatalog


datasets (other than PDS) and usually used to manage VSAM datasets?
A IEBGENER
B - IEBCOPY
C - IEBCOMPR
D IDCAMS

Q 25 - In-stream procedure is coded within the same JCL member, it is called an


Instream Procedure. It should start with a PROC statement and end with a PEND
statement. State whether true or false?
A - False
B - True

Q 26 - What will be the output of following JCL which is calling a catalog


procedure?
//TXXXXXJ JOB ,, NOTIFY = &SYSUID, CLASS = A, MSGCLASS = X
//

JCLLIB ORDER=XXXXX.PROC.LIBRARY

//DATA1 EXEC PROC = PROC1, TIME = 3

A - TIME parameter inside PROC1 will not be overridden

B - TIME parameter coded in PROCEDURE PROC1 will be replaced with TIME


parameter overridden in the JCL i.e TIME = 3
C - It will give abend
D - None of these

Q 27 - How to send the execution status of a job to a user?


A - STATUS
B - MESSAGE
C - NOTIFY
D - ALERT

Q 28 - Which utility is use to compile a COBOL program?


A - IKJEFT02
B - IKJEFT01
C - IGYCRCTL
D - None of these

Q 29 - In Job processing, what happens in Input stage?


A - Selection of Initiator for execution of Job
B - Job statement is converted into an interpreted text to be understood by JES
and stored into a dataset, which we call as SPOOL
C - Job is taken as an input to JES
D - Allocated resources and the JES SPOOL space is released

Q 30 - In Job processing, what happens in Execution stage?


A - Selection of Initiator for execution of Job
B - Job statement is converted into an interpreted text to be understood by JES
and stored into a dataset, which we call as SPOOL
C - Job is taken as an input to JES

D - Allocated resources and the JES SPOOL space is released

Q 31 - What is the purpose of coding REGION parameter in job statement?


A - Specifies the address space required to run a job step within the job
B - Specifies the time span to be used by the processor to execute the job
C - To specify the priority of the job within a job class
D - To restart a job from a particular step

Q 32 - If COND parameter is coded on both JOB and EXEC statement, then the
condition on JOB is checked before checking the condition on EXEC statement.
State whether true or false?
A - True
B - False

Q 33 - Which parameter is used to check the syntax of a JCL without executing it?
A - CLASS=0
B - PRTY=N
C - TYPRUN = HOLD
D - TYPRUN=SCAN

Q 34 - Which utility is used to sort a file in JCL?


A - DFHSORT
B - DHSORT
C - MERGE
D - SORT

Q 35 - What will be the output of following JCL which is calling a catalog


procedure?
//TXXXXXJ JOB ,, NOTIFY = &SYSUID, CLASS = A, MSGCLASS = X
//

JCLLIB ORDER=XXXXX.PROC.LIBRARY

//DATA1 EXEC PROC = PROC1, TIME = 3


A - TIME parameter inside PROC1 will not be overridden
B - TIME parameter coded in PROCEDURE PROC1 will be replaced with TIME
parameter overridden in the JCL i.e TIME = 3
C - It will give abend
D - None of these

Q 36 - What are the type of procedure in JCL?


A - Cataloged
B - Uncataloged
C - In-stream
D - Both A & D

Q 37 - What units are used for allocation of output dataset?


A - KB
B - Bytes
C - Cylinders, Tracks & Blocks
D MB

Q 38 - What does MVS stand for?


A - Multiple Virtual System
B - Main Virtual Storage
C - Multiple Virtual Storage
D - Main Virtual System

Q 39 - What operation is performed by DD statement?


A - Job Identification
B - Instruction for Execution
C - Includes name of the dataset to operate
D - None of these

Q 40 - Which of the parameters can be coded on both JOB and EXEC?


A - TIME
B - COND
C - ACCT
D - All of these

Q 41 - A JCLLIB statement is used to identify the private libraries used in the job.
It can be used both with instream and cataloged procedures. State whether true
or false?
A - True
B - False

Q 42 - Temporary datasets need storage only for the job duration and are deleted
at job completion. Such datasets are represented as DSN=&name or simply
without a DSN specified. State whether true or false?
A - True
B - False

Q 43 - How you will the direct the data to spool using SYSOUT option?
A - SYSOUT=DISP
B - SYSOUT=spool
C - SYSOUT=file-name
D - SYSOUT=*

Q 44 - A job is a unit of work which can be made up of many job steps. Each job
step is specified in a Job Control Language (JCL) through a set of Job Control
Statements. State whether true or false?
A - False
B - True

Q 45 - In-stream procedure is coded as a separate member of a PDS. State


whether true or false?
A - True
B - False

Q 46 - Up to which level cataloged and in-stream procedure can invoke other


procedure?
A - 20
B - 15
C - 25
D - 12

Q 47 - How to mark the end of in-stream data?


A - END
B - //*
C - /*
D - PEND

Q 48 - Which parameter is used to check the syntax of a JCL without executing it?
A - CLASS=0
B - PRTY=N
C - TYPRUN = HOLD
D - TYPRUN=SCAN

You might also like