JCL Qb For Cbe13am1 Batch

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Sanjaycts
S
Sanjaycts
Community Contributor
Quizzes Created: 3 | Total Attempts: 3,001
Questions: 20 | Attempts: 752

SettingsSettingsSettings
JCL Quizzes & Trivia

JCL MOCK TEST QB FOR CBE13AM1 BATCH


Questions and Answers
  • 1. 

    THE JOB IS COLLECTION OF STEPS WILL BE EXECUTED IN SEQUENCE ,TRUE OR FALSE?

    • A.

      True

    • B.

      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.

    Rate this question:

  • 2. 

    WHAT ARE ALL COMMON KEYWORD PARAMETERS BETWEEN JOB AND EXEC STATEMENT?

    • A.

      TIME,COND,REGION

    • B.

      TIME,COND

    • C.

      TIME,CLASS

    • D.

      REGION,COND,PARM

    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.

    Rate this question:

  • 3. 

    HOW MANY CHARACTERS CAN BE PLACED IN A SINGLE LINE IN JCL CODING?

    • A.

      72

    • B.

      70

    • C.

      71

    • D.

      69

    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.

    Rate this question:

  • 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?

    • A.

      GDG01(+1)

    • B.

      GDG01.G0006V00

    • C.

      GDG01.G0005V00

    • D.

      GDG01(+2)

    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.

    Rate this question:

  • 5. 

    IF A (+1) GENERATION IS CREATED IN 1 ST STEP.HOW CAN BE REFERED IN THE LATER STEPS IN THE SAME JOB?

    • A.

      AS A(+1) GENERATION

    • B.

      AS A(+2) GENERATION

    • C.

      AS A(0) GENERATION

    • D.

      AS A(-1) GENERATION

    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.

    Rate this question:

  • 6. 

    IN STEP2 IF WE ARE EXECUTING PROCEDURE  ,HOW TO RESTART FROM THAT PARTICULAR STEP?

    • A.

      RESTART=STEP2.PROCSTEPNAME IN JOB CARD

    • B.

      RESTART=STEP2.PROCSTEPNAME IN PROCEDURE

    • C.

      RESTART=PROCSTEPNAME.STEP2 IN JOB CARD

    • D.

      RESTART=PROCSTEPNAME.STEP2 IN PROCEDURE

    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.

    Rate this question:

  • 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?

    • A.

      IT WILL BE CATALOGED

    • B.

      IT WILL BE DELETED

    • C.

      IT WILL BE UNCATALOGED

    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."

    Rate this question:

  • 8. 

    TYPRUN=SCAN IN JOB STATEMENT?

    • A.

      IT WILL CHECK FOR SYNTAX ERROR WITHOUT SUBMITTING JOB

    • B.

      IT WILL CHECK FOR SYNTAX ERROR BY SUBMITTING JOB

    • C.

      IT WILL SCAN ALL THE STEPS IN THE JOB

    • D.

      IT WILL CHECK FOR SYNTAX ERROR

    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.

    Rate this question:

  • 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    

    • A.

      DSN=USERID.CATLG.PS

    • B.

      DSN=USERID.CATLGPS

    • C.

      DSN=USERID..CATLG..PS

    • D.

      DSN=USERID..CATLG.PS

    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.

    Rate this question:

  • 10. 

    MAXIMUM HOW MANY STEPS WE CAN EXECUTE IN ONE JOB?

    • A.

      254

    • B.

      255

    • C.

      250

    • D.

      256

    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.

    Rate this question:

  • 11. 

     S806 ABEND?

    • A.

      LOAD MODULE NOT FOUND

    • B.

      SOURCE CODE NOT FOUND

    • C.

      PROCEDURE NOT FOUND

    • D.

      INSUFFICIENT STORAGE WAS AVAILABLE

    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.

    Rate this question:

  • 12. 

    OPTION EMPTY IN DEFINE GDG?

    • A.

      IT WILL UNCATLG THE OLDEST GENERATION WHEN THE LIMIT IS REACHED

    • B.

      IT WILL CATLG ALL THE GENERATION WHEN THE LIMIT IS REACHED

    • C.

      IT WILL CATLG THE OLDEST GENERATION WHEN THE LIMIT IS REACHED

    • D.

      IT WILL UNCATLG ALL THE GENERATION WHEN THE LIMIT IS REACHED

    Correct Answer
    D. IT WILL UNCATLG ALL THE GENERATION WHEN THE LIMIT IS REACHED
  • 13. 

    IF TIME PARAMETER CODED IN BOTH THE STATEMENTS?

    • A.

      JOB OVERRIDE EXEC STATEMENT

    • B.

      EXEC OVERRIDE JOB STATEMENT

    • C.

      JOB OVERRIDE DD STATEMENT

    • D.

      NONE

    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.

    Rate this question:

  • 14. 

    HOW TO ELIMINATE DUPLICATE RECORDS?

    • A.

      SUM FIELDS=NONE

    • B.

      SORT FIELDS=NONE

    • C.

      MERGE FIELDS=NONE

    • D.

      NONE

    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.

    Rate this question:

  • 15. 

    IF BOTH JOBLIB AND STEPLIB CODED?

    • A.

      JOBLIB OVERRIDE STEPLIB

    • B.

      STEPLIB OVERRIDE JOBLIB

    • C.

      STEPLIB OVERRIDE JCLLIB

    • D.

      NONE

    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.

    Rate this question:

  • 16. 

    What is the purpose of DD DUMMY statement ?

    • A.

      Marks a deleted DD statement

    • B.

      Begins an interpreted command stream

    • C.

      Specifies no space allocation & no disposition processing

    • D.

      Suppress command processing

    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.

    Rate this question:

  • 17. 

    In order to continue a job after a return code of 12 in step1, what the step2 EXEC statement include?

    • A.

      CONTINUE

    • B.

      COND = (12,NE)

    • C.

      COND = (12,GE)

    • D.

      COND = (12,EQ)

    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.

    Rate this question:

  • 18. 

    What parameter directs the output of the job log dataset ?

    • A.

      JOBLOG

    • B.

      MSGCLASS

    • C.

      MSGLEVEL

    • D.

      SYSLOG

    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.

    Rate this question:

  • 19. 

    How can a job send a status message to a TSO user at the completion of a job ?

    • A.

      NOTIFY

    • B.

      CLASS

    • C.

      STATUS

    • D.

      USER

    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.

    Rate this question:

  • 20. 

    What is the purpose of DD * statement in JCL?

    • A.

      Begins an input data prompt at the system console

    • B.

      Begins an in-stream dataset

    • C.

      Marks the end of a command stream

    • D.

      Includes all datasets within a naming pattern

    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.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 21, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Jul 11, 2013
    Quiz Created by
    Sanjaycts
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.