Cbe11mf004 Job Control Language Mock Test1

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 Manjunath1987
M
Manjunath1987
Community Contributor
Quizzes Created: 7 | Total Attempts: 3,789
Questions: 20 | Attempts: 131

SettingsSettingsSettings
Language Quizzes & Trivia

Questions and Answers
  • 1. 

    What is the function of DD DISP parameter?

    • A.

      Tells the system what to do with the dataset following normal termination of the step

    • B.

      Describes the status of the dataset

    • C.

      Tells the system what to do with the dataset following abnormal termination of the step

    • D.

      All of the above

    Correct Answer
    D. All of the above
    Explanation
    The DD DISP parameter is used to specify what the system should do with the dataset after the step terminates, whether it is a normal termination or an abnormal termination. It can be used to describe the status of the dataset and determine the actions to be taken accordingly. Therefore, the correct answer is "All of the above" as all the given options are valid functions of the DD DISP parameter.

    Rate this question:

  • 2. 

    How is the record format of an output dataset specified?

    • A.

      RECORG parameter

    • B.

      STORCLAS parameter

    • C.

      RECFM parameter

    • D.

      None of the above

    Correct Answer
    C. RECFM parameter
    Explanation
    The record format of an output dataset is specified using the RECFM parameter. This parameter allows the user to define the format of the records in the dataset, such as fixed length or variable length. By specifying the appropriate RECFM parameter, the user can ensure that the output dataset is formatted correctly for their needs.

    Rate this question:

  • 3. 

    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
    A. Begins an input data prompt at the system console
    Explanation
    The purpose of the DD * statement in JCL is to begin an input data prompt at the system console. This allows the user to enter data directly from the console during job execution.

    Rate this question:

  • 4. 

    A DD statement has 2 types of parameters. Name them?

    • A.

      Positional, Keyword

    • B.

      Keyword, Control

    • C.

      Dynamic, Static

    • D.

      Named, Dynamic

    Correct Answer
    A. Positional, Keyword
    Explanation
    A DD statement has two types of parameters: positional and keyword. Positional parameters are defined by their position in the statement and must be specified in a specific order. Keyword parameters, on the other hand, are identified by a keyword followed by an equal sign and a value, allowing them to be specified in any order.

    Rate this question:

  • 5. 

    What is the function of JOB statement in JCL ?

    • A.

      Marks the end of a job

    • B.

      Marks the beginning of an instream procedure

    • C.

      Marks the beginning of a job & assigns a name to the job

    • D.

      Assigns an execution priority to a job

    Correct Answer
    C. Marks the beginning of a job & assigns a name to the job
    Explanation
    The JOB statement in JCL is used to mark the beginning of a job and assign a name to the job. It is the first statement in a JCL and is required for each job. The name assigned to the job is used to identify it in system logs and output listings.

    Rate this question:

  • 6. 

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

    • A.

      STATUS

    • B.

      NOTIFY

    • C.

      ENDMSG

    • D.

      USER

    Correct Answer
    B. NOTIFY
    Explanation
    The job can send a status message to a TSO user at the completion of a job by using the NOTIFY keyword. This keyword is used in the job control language (JCL) to specify the user or users who should receive a notification when the job completes. By specifying the NOTIFY keyword followed by the user's ID, the job can send a status message to that user. This allows the user to be informed of the job's completion and any relevant information or actions that need to be taken.

    Rate this question:

  • 7. 

    What is the function of a DD statement ?

    • A.

      Identifies & describes a dataset

    • B.

      Delimits a DO loop

    • C.

      Marks the start of a declarative section

    • D.

      Delimits the start of an inline include section

    Correct Answer
    A. Identifies & describes a dataset
    Explanation
    A DD statement in computer programming is used to identify and describe a dataset. It is commonly used in mainframe systems, such as IBM's z/OS, to define and allocate datasets for input/output operations. The DD statement specifies the name, location, and attributes of the dataset, allowing the program to access and manipulate the data. By using a DD statement, the program can easily identify and describe the dataset it needs to work with, ensuring proper data management and processing.

    Rate this question:

  • 8. 

    When output dataset space is required, what quantity categories are used ?

    • A.

      Primary, Secondary, Directory

    • B.

      Address, Units, CONTIG or ALS

    • C.

      Displacement and length

    • D.

      Megabytes, Kilobytes and Bytes

    Correct Answer
    A. Primary, Secondary, Directory
    Explanation
    The quantity categories used when output dataset space is required are Primary, Secondary, and Directory. These categories refer to different storage spaces or areas within the dataset. Primary refers to the main or initial storage space, Secondary refers to additional storage space if needed, and Directory refers to the space used for organizing and managing the dataset.

    Rate this question:

  • 9. 

    What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step ?

    • A.

      START

    • B.

      RUN

    • C.

      EXEC

    • D.

      GO

    Correct Answer
    C. EXEC
    Explanation
    The statement that marks the beginning of a job step, assigns a name to the step, and identifies the program or catalogued or in-stream procedure to be executed in the step is "EXEC". This statement is commonly used in job control language (JCL) to initiate a specific task or program within a larger job. It provides the necessary information for the system to locate and execute the desired program or procedure.

    Rate this question:

  • 10. 

    How can unused space allocation be returned to the system when a dataset is closed ?

    • A.

      RETURN

    • B.

      RLSE

    • C.

      CONTIG

    • D.

      CLOSE

    Correct Answer
    B. RLSE
    Explanation
    When a dataset is closed, any unused space allocation can be returned to the system by using the RLSE command. This command releases any unused space back to the system, making it available for other processes or datasets.

    Rate this question:

  • 11. 

    Can an individual step be restricted from using all the job’s allowed CPU time ?

    • A.

      Yes

    • B.

      No

    • C.

      Only in Catalogued Procedure

    • D.

      Through the STEPTIME parameter

    Correct Answer
    D. Through the STEPTIME parameter
    Explanation
    The STEPTIME parameter allows an individual step to be restricted from using all the job's allowed CPU time. This parameter can be used to set a time limit for each step in a job, preventing it from using more CPU time than specified. By setting a limit on the STEPTIME parameter, the individual step can be restricted from using all the job's allowed CPU time.

    Rate this question:

  • 12. 

    Where can program checkpoints be stored for use in a restart ?

    • A.

      CHCKPOINT DD statement

    • B.

      SYSCHK DD statement

    • C.

      CHKOUT DD statement

    • D.

      CHECK or DD statement

    Correct Answer
    B. SYSCHK DD statement
    Explanation
    Program checkpoints can be stored for use in a restart using the SYSCHK DD statement. The SYSCHK DD statement is used to specify the dataset where program checkpoints are stored. By storing checkpoints in this dataset, the program can be restarted from the last checkpoint in case of any failure or interruption. This allows for the program to resume execution from the point of failure, ensuring data integrity and minimizing the impact of any disruptions.

    Rate this question:

  • 13. 

    How can the disposition of sysout datasets be set for an entire jobstream ?

    • A.

      SYSOUT parameter

    • B.

      OUTPUT parameter

    • C.

      DEFAULT parameter

    • D.

      DEST keyword

    Correct Answer
    A. SYSOUT parameter
    Explanation
    The correct answer is the SYSOUT parameter. The SYSOUT parameter is used to specify the disposition of the output datasets for an entire jobstream. It allows the user to define where the output will be directed, such as to a specific dataset or to a printer. By setting the SYSOUT parameter appropriately, the user can control where the output of each step in the jobstream will be directed.

    Rate this question:

  • 14. 

    What statement marks the end of an in-stream procedure ?

    • A.

      STREAM

    • B.

      SET

    • C.

      PROC

    • D.

      PEND

    Correct Answer
    D. PEND
    Explanation
    The statement "PEND" marks the end of an in-stream procedure.

    Rate this question:

  • 15. 

    What is the function of DD name parameter with a 2 part structure; Audit.Report ?

    • A.

      Override the Audit DD statement in the report

    • B.

      Override the Report DD statement in the Audit procedure

    • C.

      Concatenate a dataset onto a DD statement in a called module

    • D.

      Delete the Audit DD statement in the Report

    Correct Answer
    B. Override the Report DD statement in the Audit procedure
    Explanation
    The function of the DD name parameter with a 2 part structure; Audit.Report is to override the Report DD statement in the Audit procedure. This means that the Audit procedure will use the Audit.Report dataset instead of the Report dataset specified in the DD statement.

    Rate this question:

  • 16. 

    Which DD parameters are required ?

    • A.

      All parameters & Keywords are optional

    • B.

      Dsname, SPACE, RECFM

    • C.

      Dsname, SPACE, UNIT

    • D.

      Dsname, DISP, SPACE

    Correct Answer
    D. Dsname, DISP, SPACE
    Explanation
    The correct answer is Dsname, DISP, SPACE. These parameters are required in order to specify the dataset name, the disposition of the dataset (whether it is new or existing), and the amount of space allocated for the dataset. The other options may be optional, but these three parameters are necessary for defining the dataset.

    Rate this question:

  • 17. 

    How can an in-stream dataset be terminated?

    • A.

      //

    • B.

      //*

    • C.

      /*

    • D.

      None of the above

    Correct Answer
    D. None of the above
  • 18. 

    What is the function of the DD DCB keyword?

    • A.

      Begins the subparameters of the DCB

    • B.

      Begins the DASD control block

    • C.

      Marks the close of the DCB

    • D.

      Modifies the record type parameters

    Correct Answer
    A. Begins the subparameters of the DCB
    Explanation
    The DD DCB keyword is used to begin the subparameters of the DCB. DCB stands for Data Control Block, which is a data structure used by operating systems to define the attributes of a dataset. The subparameters of the DCB provide additional information about the dataset, such as record format, block size, and data organization. By using the DD DCB keyword, the programmer can specify and define these subparameters for the dataset.

    Rate this question:

  • 19. 

    What is the maximum length of a single line of JCL ?

    • A.

      71 bytes

    • B.

      60 bytes

    • C.

      55 bytes

    • D.

      80 bytes

    Correct Answer
    A. 71 bytes
    Explanation
    The maximum length of a single line of JCL is 71 bytes. This is because JCL (Job Control Language) is a scripting language used on mainframe computers to instruct the operating system on how to run a batch job. Each line of JCL can contain up to 71 characters, including any comments or control statements. This limit ensures that the JCL remains readable and manageable.

    Rate this question:

  • 20. 

    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
    D. Suppress command processing
    Explanation
    The purpose of the DD DUMMY statement is to suppress command processing. This means that when the DD DUMMY statement is used, any commands following it will not be executed. This can be useful in situations where a placeholder statement is needed in a program or script, but no actual processing or execution is desired. By using the DD DUMMY statement, the program can continue running without any interruption or unwanted command execution.

    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
  • May 05, 2011
    Quiz Created by
    Manjunath1987
Back to Top Back to top
Advertisement