1.
THE JOB IS COLLECTION OF STEPS WILL BE EXECUTED IN SEQUENCE ,TRUE OR FALSE?
Correct Answer
A. True
Explanation
The given statement is true. A job is indeed a collection of steps that are executed in sequence. In the context of work or task management, a job typically consists of multiple individual tasks or actions that need to be performed in a specific order. Each step is completed before moving on to the next one, ensuring a sequential execution of the job.
2.
WHAT ARE ALL COMMON KEYWORD PARAMETERS BETWEEN JOB AND EXEC STATEMENT?
Correct Answer
A. TIME,COND,REGION
Explanation
The common keyword parameters between JOB and EXEC statement are TIME, COND, and REGION. These parameters are used to specify the execution time, condition, and region for the job or program. The TIME parameter determines when the job or program should run, the COND parameter specifies the condition that needs to be met for the job to execute, and the REGION parameter defines the storage region size for the job or program.
3.
HOW MANY CHARACTERS CAN BE PLACED IN A SINGLE LINE IN JCL CODING?
Correct Answer
C. 71
Explanation
In JCL coding, a single line can accommodate a maximum of 71 characters. This limit is imposed to ensure that the code remains readable and manageable. Exceeding this limit may lead to errors or difficulties in understanding the code. Therefore, it is important to adhere to this character limit while writing JCL code.
4.
//STEP01 EXEC PGM=IEFBR14
//GDG DD DSN=GDG01(+1),DISP=(NEW,CATLG),SPACE=(TRK,(1,1))
ASSUME THAT AT PRESENT 5 GENERATIONS IS EXISTING AFTER EXECUTING ABOVE JCL WHAT WILL BE THE DSNAME?
Correct Answer
B. GDG01.G0006V00
Explanation
After executing the given JCL, the DSNAME of the new generation will be GDG01.G0006V00. This is because the DISP parameter is set to (NEW,CATLG), which means that a new generation is created and cataloged. The (+1) in the DSN specifies that the new generation will have a higher version number than the previous generation. Since there are currently 5 existing generations, the new generation will have a version number of 6.
5.
IF A (+1) GENERATION IS CREATED IN 1 ST STEP.HOW CAN BE REFERED IN THE LATER STEPS IN THE SAME JOB?
Correct Answer
A. AS A(+1) GENERATION
Explanation
In the given question, it is stated that a (+1) generation is created in the 1st step. This means that the current generation is incremented by 1. Therefore, in the later steps of the same job, it can be referred to as a (+1) generation.
6.
IN STEP2 IF WE ARE EXECUTING PROCEDURE ,HOW TO RESTART FROM THAT PARTICULAR STEP?
Correct Answer
A. RESTART=STEP2.PROCSTEPNAME IN JOB CARD
Explanation
The given correct answer suggests that in order to restart from a particular step (STEP2) in a job, the restart parameter should be specified in the job card as RESTART=STEP2.PROCSTEPNAME. This means that the job will resume execution from the specified step (PROCSTEPNAME) within STEP2.
7.
//S1 EXEC PGM=IEFBR14
//DD1 DD DSN=USERID.PS,DISP=(NEW,,DELETE),
// DCB=(LRECL=80,BLKSIZE=800,RECFM=FB),SPACE=(TRK,(1,1))
AFTER EXECUTING THAT STEP THE DATASET WILL BE CREATED OR NOT?
Correct Answer
B. IT WILL BE DELETED
Explanation
After executing the given step, the dataset specified in DD1 will be created with the attributes specified in the DD statement. However, the DISP parameter is set to (NEW,,DELETE), which means that the dataset will be deleted after the job completes. Therefore, the correct answer is "IT WILL BE DELETED."
8.
TYPRUN=SCAN IN JOB STATEMENT?
Correct Answer
A. IT WILL CHECK FOR SYNTAX ERROR WITHOUT SUBMITTING JOB
Explanation
The correct answer is "IT WILL CHECK FOR SYNTAX ERROR WITHOUT SUBMITTING JOB". When TYPRUN=SCAN is included in the JOB statement, it instructs the system to perform a syntax check on the job without actually submitting it for execution. This allows the user to identify any syntax errors in the job before submitting it, helping to prevent potential issues and saving time.
9.
//PROC1 PROC
//S1 EXEC PGM=IEFBR14
//DD1 DD DSN=&DSN1..&DSN2.PS,DISP=(NEW,,DELETE),
// DCB=(LRECL=80,BLKSIZE=800,RECFM=FB),SPACE=(TRK,(1,1))
// PEND
//STEP1 EXEC PROC=PROC1,DSN1=USERID,DSN2=CATLG
Correct Answer
B. DSN=USERID.CATLGPS
Explanation
The given JCL code is using symbolic parameters &DSN1 and &DSN2 to construct the dataset name for DD1. In the PROC1 PROC, &DSN1 is set to USERID and &DSN2 is set to CATLG. Therefore, the dataset name for DD1 will be USERID.CATLGPS.
10.
MAXIMUM HOW MANY STEPS WE CAN EXECUTE IN ONE JOB?
Correct Answer
B. 255
Explanation
The correct answer is 255. This is because the maximum number of steps that can be executed in one job is determined by the maximum value that can be represented by an 8-bit binary number. In binary, the maximum value that can be represented by 8 bits is 255. Therefore, the maximum number of steps that can be executed in one job is 255.
11.
S806 ABEND?
Correct Answer
A. LOAD MODULE NOT FOUND
Explanation
The given correct answer suggests that the S806 ABEND error occurs when the load module, which is required for the execution of a program, is not found. This means that the system is unable to locate the necessary executable code, resulting in the failure of the program execution.
12.
OPTION EMPTY IN DEFINE GDG?
Correct Answer
D. IT WILL UNCATLG ALL THE GENERATION WHEN THE LIMIT IS REACHED
13.
IF TIME PARAMETER CODED IN BOTH THE STATEMENTS?
Correct Answer
B. EXEC OVERRIDE JOB STATEMENT
Explanation
The correct answer is "EXEC OVERRIDE JOB STATEMENT". This is because both the "EXEC" and "OVERRIDE" keywords are present in this statement, indicating that it is the only statement that contains both the time parameter and the "OVERRIDE" keyword. The other statements either do not contain the "OVERRIDE" keyword or do not contain the time parameter.
14.
HOW TO ELIMINATE DUPLICATE RECORDS?
Correct Answer
A. SUM FIELDS=NONE
Explanation
The "SUM FIELDS=NONE" statement is used in a sort utility to eliminate duplicate records. This statement specifies that no fields should be used for summarization or comparison. Therefore, when the records are sorted, any duplicate records will be eliminated, resulting in a list of unique records.
15.
IF BOTH JOBLIB AND STEPLIB CODED?
Correct Answer
B. STEPLIB OVERRIDE JOBLIB
Explanation
When both JOBLIB and STEPLIB are coded, the STEPLIB statement will override the JOBLIB statement. This means that the system will prioritize the STEPLIB libraries over the JOBLIB libraries when searching for programs or datasets referenced in the JCL. Therefore, any programs or datasets specified in both JOBLIB and STEPLIB will be taken from the STEPLIB libraries. The JCLLIB statement is not relevant in this scenario and does not affect the override between JOBLIB and STEPLIB.
16.
What is the purpose of DD DUMMY statement ?
Correct Answer
C. Specifies no space allocation & no disposition processing
Explanation
The purpose of the DD DUMMY statement is to specify that no space allocation and no disposition processing should be done. This means that the statement does not allocate any resources or perform any actions related to the data definition (DD) statement. It is used when there is a need to include a DD statement for syntax or control purposes, but no actual processing or allocation is required.
17.
In order to continue a job after a return code of 12 in step1, what the step2 EXEC statement include?
Correct Answer
B. COND = (12,NE)
Explanation
The correct answer is "COND = (12,NE)". This means that the step2 EXEC statement includes a condition that checks if the return code from step1 is not equal to 12. If the return code is not equal to 12, the job will continue executing.
18.
What parameter directs the output of the job log dataset ?
Correct Answer
B. MSGCLASS
Explanation
The parameter that directs the output of the job log dataset is MSGCLASS. This parameter determines the class of messages that are written to the job log dataset. By specifying the appropriate MSGCLASS value, the user can control the level of detail in the job log and direct the output to the desired dataset.
19.
How can a job send a status message to a TSO user at the completion of a job ?
Correct Answer
A. NOTIFY
Explanation
The correct answer is NOTIFY. NOTIFY is a command used in TSO (Time Sharing Option) to send a status message to a user at the completion of a job. This command allows the job to notify the user about the completion status, such as success or failure, of the job. By using NOTIFY, the job can send a message directly to the TSO user, ensuring that the user is informed about the job's completion status in real-time.
20.
What is the purpose of DD * statement in JCL?
Correct Answer
B. Begins an in-stream dataset
Explanation
The purpose of the DD * statement in JCL is to begin an in-stream dataset. In-stream datasets are used to provide input data directly within the JCL job stream, instead of referencing an external dataset. The DD * statement allows for the inclusion of data within the JCL itself, making it convenient for small or temporary datasets that do not require separate physical files.