JCL And VSAM Mocktest 2

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 Anjali Krishna
A
Anjali Krishna
Community Contributor
Quizzes Created: 4 | Total Attempts: 25,611
Questions: 20 | Attempts: 6,620

SettingsSettingsSettings
JCL And VSAM Mocktest 2 - Quiz

The following quiz deals with JCL (Job Control Language) and VSAM (Virtual Storage Access Method). JCL is a scripting language used for describing jobs to the MVS, OS/390 and VSE operating systems. VSAM is a file storage access method which uses most of the same operating systems. What do you know about these two applications? Take the quiz right now to find out!


Questions and Answers
  • 1. 

    JCL stands for  

    • A.

      Job Common Language

    • B.

      Job Control Language

    • C.

      Job Completion Language

    • D.

      Job Creation Language

    Correct Answer
    B. Job Control Language
    Explanation
    JCL stands for Job Control Language. It is a scripting language used in mainframe operating systems to control and coordinate the execution of batch jobs. JCL is responsible for specifying the input and output files, defining the resources needed for the job, and specifying the order in which the job steps should be executed. It is used to submit and manage jobs in mainframe environments, making it an essential component for job scheduling and automation.

    Rate this question:

  • 2. 

    To ensure that a step will always be executed irrespective of any previous step ABENDS, COND parameter of JOB statement should be coded as:  

    • A.

      COND= ONLY

    • B.

      COND= (4, LT)

    • C.

      COND= EVEN

    • D.

      COND= (4,GT)

    Correct Answer
    C. COND= EVEN
    Explanation
    The COND= EVEN parameter should be used to ensure that a step will always be executed irrespective of any previous step ABENDS. This parameter allows the step to be executed even if the condition code of the previous step is even.

    Rate this question:

  • 3. 

    Which of the following is designed for Multiprocessor environment:  

    • A.

      JES1

    • B.

      JES2

    • C.

      JES3

    • D.

      JES4

    Correct Answer
    C. JES3
    Explanation
    JES3 is designed for a multiprocessor environment. JES stands for Job Entry Subsystem, which is responsible for managing the execution of jobs in a mainframe environment. JES3 is specifically designed to handle multiple processors and distribute the workload across them efficiently. It provides parallel processing capabilities, allowing for faster job execution and improved system performance in a multiprocessor environment.

    Rate this question:

  • 4. 

    In JCL statements:       

    • A.

      All Keyword Parameters should appear before any Positional Parameters

    • B.

      They can appear in any order

    • C.

      We can’t have Positional and Keyword Parameters in same statement

    • D.

      All Positional Parameters should appear before any Keyword Parameters

    Correct Answer
    D. All Positional Parameters should appear before any Keyword Parameters
    Explanation
    In JCL statements, it is necessary for all positional parameters to appear before any keyword parameters. This means that the parameters that are specified by their position in the statement must be listed before any parameters that are specified by their keyword. This ensures that the JCL interpreter can correctly interpret and process the parameters in the statement.

    Rate this question:

  • 5. 

    The RESTART parameter of JOB statement requests:     

    • A.

      To restart a job unconditionally

    • B.

      That a job begins execution with a step other than the first one

    • C.

      To restart a job abased on COND parameter

    • D.

      To restart a job in case of ABEND

    Correct Answer
    B. That a job begins execution with a step other than the first one
    Explanation
    The RESTART parameter of the JOB statement allows a job to begin execution with a step other than the first one. This means that if a job is interrupted or encounters an error, it can be restarted from a specific step rather than starting from the beginning. This parameter is useful in situations where the previous steps have already been completed successfully and there is no need to repeat them. By specifying a different step to start with, the job can save time and resources by skipping unnecessary steps.

    Rate this question:

  • 6. 

    Which of the following statement is TRUE about concatenation of datasets?    

    • A.

      Disk as well as Tape datasets can be concatenated

    • B.

      Only disk datasets can be concatenated

    • C.

      Only Tape datasets can be concatenated

    • D.

      None of the Disk or Tape datasets can be concatenated

    Correct Answer
    B. Only disk datasets can be concatenated
    Explanation
    Only disk datasets can be concatenated. Concatenation refers to combining multiple datasets into a single dataset. Disk datasets can be easily concatenated because they are stored on a disk and can be accessed sequentially. On the other hand, tape datasets cannot be easily concatenated because accessing data on a tape is not sequential and requires rewinding and fast-forwarding. Therefore, only disk datasets can be concatenated.

    Rate this question:

  • 7. 

    DISP=  (OLD, DELETE, KEEP) will:  

    • A.

      Retain the dataset if the job doesn’t ABENDs in this step

    • B.

      Will never retain the dataset

    • C.

      Retain the dataset if the job ABENDs in this step

    • D.

      Will always retain the dataset.

    Correct Answer
    C. Retain the dataset if the job ABENDs in this step
    Explanation
    The DISP=(OLD, DELETE, KEEP) option will retain the dataset if the job ABENDs in this step. ABEND stands for abnormal end, which refers to a situation where a program or job terminates unexpectedly or abnormally. In this scenario, the dataset will be retained instead of being deleted, allowing for further analysis or debugging of the job.

    Rate this question:

  • 8. 

    BLOCKSIZE subparameter  of DCB:  

    • A.

      Should always be exact multiple of recordsize

    • B.

      Need not be exact multiple of recordsize.

    • C.

      Is always equal to 1

    • D.

      Is equal to Recordsize * Number of Records in the dataset

    Correct Answer
    A. Should always be exact multiple of recordsize
    Explanation
    The BLOCKSIZE subparameter of DCB should always be an exact multiple of the record size. This is because the block size determines the amount of data transferred at a time between the storage device and the computer's memory. If the block size is not a multiple of the record size, it may result in inefficient use of storage space and slower data transfer speeds. Therefore, it is best practice to ensure that the block size is an exact multiple of the record size to optimize performance.

    Rate this question:

  • 9. 

    IEBGENER utility can be used  

    • A.

      To allocate a PDS

    • B.

      To delete a PSDS

    • C.

      To create a PDS

    • D.

      To copy a PSDS

    Correct Answer
    D. To copy a PSDS
    Explanation
    The IEBGENER utility is used to copy a Partitioned Data Set (PDS). It is not used to allocate, delete, or create a PDS. Therefore, the correct answer is "To copy a PSDS".

    Rate this question:

  • 10. 

    Which of the following statements are not true about the TIME parameter in JOB & EXEC statements:  

    • A.

      Time parameter must be coded for every job

    • B.

      Time parameter of step overrides that of job

    • C.

      A time-out abend will occur if job exceeds time specified in Time parameter

    • D.

      Time is specified in terms of Hours & minutes (Time= (9.30))

    Correct Answer
    A. Time parameter must be coded for every job
    Explanation
    The statement "Time parameter must be coded for every job" is not true because the Time parameter is optional and does not need to be coded for every job.

    Rate this question:

  • 11. 

    VSAM files are called _____________.  

    • A.

      Datasets

    • B.

      DSCB sets

    • C.

      Clusters

    • D.

      KSDS

    Correct Answer
    C. Clusters
    Explanation
    VSAM files are called "Clusters" because a cluster is a collection of related VSAM files that are grouped together for efficient processing. A cluster consists of an index component and one or more data components. The index component contains the keys and pointers to the records in the data components. Clusters are used to improve performance and organization of VSAM files.

    Rate this question:

  • 12. 

    VSAM stores record in the data component in units called _____________.         

    • A.

      Control intervals

    • B.

      Control area

    • C.

      Blocks

    • D.

      Buffers

    Correct Answer
    A. Control intervals
    Explanation
    VSAM stores records in the data component in units called control intervals. Control intervals are logical units of storage that contain one or more records. These control intervals are used to efficiently manage and access the records stored in the VSAM data set.

    Rate this question:

  • 13. 

    An ESDS cluster consists of the following components  

    • A.

      Data component

    • B.

      Index component

    • C.

      Both

    Correct Answer
    A. Data component
    Explanation
    An ESDS cluster consists of the data component. This component is responsible for storing and managing the actual data in the cluster. The index component, on the other hand, is responsible for indexing and organizing the data for efficient retrieval. However, in an ESDS cluster, only the data component is mentioned, indicating that it is the correct answer.

    Rate this question:

  • 14. 

    _____________ contains the condition code of the most recently executed IDCAMS command.   .  

    • A.

      PREVCC

    • B.

      LASTCC

    • C.

      MAXCC

    • D.

      Both- MAXCC & LASTCC

    Correct Answer
    B. LASTCC
    Explanation
    LASTCC contains the condition code of the most recently executed IDCAMS command.

    Rate this question:

  • 15. 

    The following parameter establishes the relationship between the base cluster and the alternate index.  

    • A.

      Data

    • B.

      Volumes

    • C.

      Name

    • D.

      Relate

    Correct Answer
    D. Relate
    Explanation
    The parameter "Relate" establishes the relationship between the base cluster and the alternate index.

    Rate this question:

  • 16. 

    The following parameter of the Define cluster command is a positional mandatory parameter  

    • A.

      Relate

    • B.

      Upgrade

    • C.

      Path

    Correct Answer
    A. Relate
    Explanation
    The correct answer is "Relate" because in the context of the Define cluster command, it is a positional mandatory parameter. This means that when using the command, the parameter "Relate" must be provided in a specific position and it cannot be omitted.

    Rate this question:

  • 17. 

    Which of the following functions are performed by the REPRO command?                                                                                                                                              

    • A.

      Loads empty VSAM cluster with records

    • B.

      Creates backup of a VSAM dataset on physical sequential dataset

    • C.

      Merge data from two VSAM datasets

    • D.

      All of the above

    Correct Answer
    A. Loads empty VSAM cluster with records
    Explanation
    The REPRO command performs the function of loading an empty VSAM cluster with records.

    Rate this question:

  • 18. 

    If an AIX has to be build on a cluster then the base cluster has to be defined as  

    • A.

      Reusable

    • B.

      Nonreusable

    • C.

      Upgrade

    Correct Answer
    B. Nonreusable
    Explanation
    In order to build an AIX on a cluster, the base cluster needs to be defined as nonreusable. This means that the cluster cannot be reused for any other purpose or for building any other AIX. This ensures that the cluster is dedicated solely to the AIX being built and avoids any potential conflicts or issues that could arise from sharing the cluster with other systems or projects.

    Rate this question:

  • 19. 

    _____________ command is used to ensure the data integrity of the VSAM cluster.  

    • A.

      Repro

    • B.

      Alter

    • C.

      Verify

    • D.

      None

    Correct Answer
    C. Verify
    Explanation
    The "Verify" command is used to ensure the data integrity of the VSAM cluster. This command checks the consistency and validity of the data stored in the cluster by comparing it with the expected values. It helps in identifying any discrepancies or errors in the data and ensures that the cluster is functioning correctly.

    Rate this question:

  • 20. 

     How do you skip a particular step in procedure or job.            

    • A.

      COND

    • B.

      SKIP

    • C.

      IGNORE

    • D.

      NONE

    Correct Answer
    A. COND
    Explanation
    The correct answer is "COND". In a procedure or job, the "COND" statement is used to specify conditions under which a particular step should be skipped. It allows for conditional execution of steps based on the outcome of previous steps or other conditions. By using "COND", you can control the flow of the procedure or job and skip certain steps if the specified conditions are met.

    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
  • May 15, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Jul 22, 2011
    Quiz Created by
    Anjali Krishna

Related Topics

Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.