JCL And VSAM Mock Test-1

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,661
Questions: 15 | Attempts: 12,222

SettingsSettingsSettings
JCL And VSAM Mock Test-1 - Quiz


Questions and Answers
  • 1. 

    For how long a job can be executed continuously in a mainframe.           

    • A.

      248 days

    • B.

      247 days

    • C.

      255 days

    • D.

      256 days

    Correct Answer
    A. 248 days
    Explanation
    The correct answer is 248 days. This suggests that a job can be executed continuously for a period of 248 days on a mainframe system.

    Rate this question:

  • 2. 

    Which parameter denotes exclusive control  of the dataset.            

    • A.

      DISP=OLD

    • B.

      DISP=SHR

    • C.

      DISP=MOD

    • D.

      NONE

    Correct Answer
    A. DISP=OLD
    Explanation
    The parameter DISP=OLD denotes exclusive control of the dataset. This means that only one program or user can have access to the dataset at a time. If DISP=OLD is specified, any other program or user trying to access the dataset will receive an error message indicating that the dataset is already in use.

    Rate this question:

  • 3. 

     What are the kinds of job control statements.           

    • A.

      JOB

    • B.

      EXEC

    • C.

      DD

    • D.

      ALL

    Correct Answer
    D. ALL
    Explanation
    The correct answer is "ALL" because "ALL" is a valid job control statement used in mainframe systems. It is used to indicate that all data sets associated with a job should be processed. This statement ensures that all necessary input and output files are included in the job execution, allowing for a comprehensive and complete job processing.

    Rate this question:

  • 4. 

    Can you code Instream data in procedure.                              

    • A.

      YES

    • B.

      NO

    • C.

      BOTH

    Correct Answer
    B. NO
    Explanation
    The question asks if it is possible to code Instream data in a procedure. The correct answer is "NO" because Instream data is used to provide input data to a program during execution, and it is typically coded outside of a procedure in the JCL (Job Control Language) or in a separate data file. It is not coded directly within a procedure.

    Rate this question:

  • 5. 

    How do you access a file that had a disposition of KEEP.             

    • A.

      By vol serial no.

    • B.

      using unit no.

    • C.

      Using catalog

    • D.

      All

    Correct Answer
    A. By vol serial no.
    Explanation
    To access a file that had a disposition of KEEP, you can use the vol serial no. This means that you can locate and access the file by specifying the volume serial number where it is stored. This method allows you to directly access the file without needing additional information such as unit number or catalog.

    Rate this question:

  • 6. 

    Directory blocks are ________ Bytes each.              

    • A.

      256

    • B.

      6

    • C.

      128

    • D.

      32

    Correct Answer
    A. 256
    Explanation
    Directory blocks are typically 256 bytes each.

    Rate this question:

  • 7. 

    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" command is used to specify a condition that must be met in order for a particular step to be executed. If the condition is not met, the step is skipped and the program continues with the next step. This allows for more flexible and conditional execution of steps within a procedure or job.

    Rate this question:

  • 8. 

    What are the types of procedures.            

    • A.

      INSTREAM

    • B.

      CATAOLOGED

    • C.

      OUTSTREAM

    • D.

      a AND b

    Correct Answer
    D. a AND b
    Explanation
    The correct answer is "a AND b" because the question asks for the types of procedures, and both "INSTREAM" and "CATALOGED" are types of procedures. "OUTSTREAM" is not a type of procedure, so it is not included in the correct answer.

    Rate this question:

  • 9. 

    Dataset of different LRECLs  cannot concatenated

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
    Explanation
    The statement is false because datasets with different logical record lengths (LRECLs) can be concatenated. Concatenating datasets refers to combining them into a single dataset. While it is important for the LRECLs to be consistent within each individual dataset, it is not a requirement for them to be the same across different datasets being concatenated.

    Rate this question:

  • 10. 

    If a new model is created for every new GDG                                 it should have the same name as the GDG           

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    Explanation
    If a new model is created for every new GDG, it should have the same name as the GDG. This means that each time a new GDG (Generation Data Group) is created, a corresponding model with the same name should also be created. This ensures consistency and organization in managing the GDGs and their associated models.

    Rate this question:

  • 11. 

    1. Default RECORDSIZE for a nonspanned dataset is -
               

    • A.

      (80 80)

    • B.

      (4034 32600)

    • C.

      (100 100)

    • D.

      (4089 4089)

    Correct Answer
    D. (4089 4089)
    Explanation
    The correct answer is (4089 4089). This answer indicates that the default record size for a nonspanned dataset is 4089 bytes.

    Rate this question:

  • 12. 

    1. At OPEN, VSAM determines processing options in following order:
                   

    • A.

      JCL, Program, Catalog

    • B.

      Program, JCL, Catalog

    • C.

      JCL, Catalog, Program

    • D.

      Catalog, Program, JCL

    • E.

      None Of The above

    Correct Answer
    B. Program, JCL, Catalog
    Explanation
    The correct answer is Program, JCL, Catalog. This means that when processing options are determined in VSAM, the program takes precedence over the JCL and the JCL takes precedence over the catalog. This order ensures that any specific options set in the program will be followed, followed by any options set in the JCL, and finally any default options set in the catalog.

    Rate this question:

  • 13. 

    Alternate Index is a special Type of        

    • A.

      KSDS

    • B.

      ESDS

    • C.

      RRDS

    • D.

      PS

    • E.

      All of the above

    Correct Answer
    A. KSDS
    Explanation
    Alternate Index is a special type of Key Sequenced Data Set (KSDS). In a KSDS, records are stored in a sequential order based on a primary key. An Alternate Index allows for an additional key to be defined for the same data set, providing an alternative way to access and retrieve records. This can be useful when there is a need to access the data set using a different key other than the primary key. Therefore, the correct answer is KSDS.

    Rate this question:

  • 14. 

    VERIFY can not be used for:            

    • A.

      Empty dataset

    • B.

      LDS

    • C.

      A & B

    • D.

      None

    Correct Answer
    C. A & B
    Explanation
    The correct answer is A & B. This means that VERIFY cannot be used for an empty dataset or for LDS (Local Data Store). The VERIFY statement is used to check the validity of conditions in a program. However, it cannot be used when there is no data in the dataset or when working with LDS.

    Rate this question:

  • 15. 

    Which of the following REPRO selection parameters can be specified for an LDS?

    • A.

      FROMKEY

    • B.

      FROMADDRESS

    • C.

      FROMNUMBER

    • D.

      None

    • E.

      SKIP

    Correct Answer
    D. None
    Explanation
    The question is asking which REPRO selection parameters can be specified for an LDS. The options given are FROMKEY, FROMADDRESS, FROMNUMBER, None, and SKIP. The correct answer is None, indicating that no REPRO selection parameters can be specified for an LDS.

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

Related Topics

Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.