0

mainframe Online Quiz - 1

Description: mainframe Online Quiz - 1
Number of Questions: 21
Created by:
Tags: mainframe
Attempted 0/21 Correct 0 Score 0

What are the various types of VSAM Data Organizations available?

  1. PSDS, KADS, RRDS, VRRDS, LRDS

  2. ESDS, KSDS, RRDS, VRRDS, LDS

  3. ESDS, KRDS, RRDS, VLDS, VKDS

  4. PSDS, RKDS, KSDS, FRDS, LLDS


Correct Option: B

For creating a PDS file, we need to define Directory Block as 0.

  1. True

  2. False


Correct Option: B

AI Explanation

To answer this question, we need to understand the concept of PDS (Partitioned Data Set) files and the role of the Directory Block.

A PDS file is a dataset in IBM's Mainframe operating system, z/OS. It is used to organize related data records into logical groups called members. Each member within a PDS file has its own name and can contain different types of data.

The Directory Block is a special block within a PDS file that contains information about the members present in the PDS. It acts as an index or directory, pointing to the location of each member within the PDS.

Now, coming to the given statement: "For creating a PDS file, we need to define Directory Block as 0."

This statement is incorrect. The Directory Block is automatically created by the system when a new PDS file is created. It is not something that needs to be defined explicitly as 0. The system assigns the appropriate values to the Directory Block based on the PDS file's structure and the members it contains.

Therefore, the correct answer is:

B) False - This option is correct because the Directory Block is automatically created by the system when a PDS file is created. It does not need to be defined as 0.

COBOL was conceived in 1959. COBOL is a High Level Language.

  1. True

  2. False


Correct Option: A

What are the lengths of the areas A & B in COBOL?

  1. A: 8-11, B: 12-72

  2. A: 8-11, B: 12-80

  3. A: 8-12, B: 13-72

  4. A: 8-12, B: 13-80


Correct Option: A

Order of Divisions in COBOL program:

  • IDENTIFICATION DIVISION
  • ENVIRONMENT DIVISION
  • DATA DIVISION
  • PROCEDURE DIVISION
  1. True

  2. False


Correct Option: A

Which error code is shown by the system when Task exceeded the Execution Time (Task in Loop) ?

  1. APCT

  2. ASRB

  3. AICA

  4. ABMB


Correct Option: C

Which utility is used for Link Edit a program?

  1. IEKL

  2. IEWL

  3. IEBGENER

  4. IEFBR14


Correct Option: B

Which utility is used to CREATE, DELETE, COPY PS/PDS?

  1. IEWL

  2. DSNHPC

  3. IGYCRCTL

  4. IEFBR14


Correct Option: D

AI Explanation

To answer this question, you need to understand the utilities available in mainframe environments for managing PS (Physical Sequential) and PDS (Partitioned Data Set).

Let's go through each option to understand why it is correct or incorrect:

Option A) IEWL - This option is incorrect because IEWL (Interactive Edit and Link) is a utility used for linking and editing programs, not for creating, deleting, or copying PS/PDS.

Option B) DSNHPC - This option is incorrect because DSNHPC (Data Set High-Level Programming Control) is a utility used for managing DB2 objects, not for creating, deleting, or copying PS/PDS.

Option C) IGYCRCTL - This option is incorrect because IGYCRCTL (COBOL Compiler Control) is a utility used for controlling the compilation of COBOL programs, not for creating, deleting, or copying PS/PDS.

Option D) IEFBR14 - This option is correct because IEFBR14 (Dummy Utility) is a utility used for creating, deleting, or copying PS/PDS. It is commonly used to create a new PS or PDS, delete an existing PS or PDS, or copy a PS or PDS to another location.

The correct answer is D) IEFBR14. This option is correct because IEFBR14 is the utility used to create, delete, or copy PS/PDS.

Which EIB field can be used for ERROR/EXCEPTION handling?

  1. EIBRESP1, EIBRESP2

  2. EIBRESP, EIBRESP1

  3. EIBRESP, EIBRESP2

  4. EIBRESP0, EIBRESP1


Correct Option: C

AI Explanation

To answer this question, you need to understand the fields related to ERROR/EXCEPTION handling in EIB (EXEC Interface Block).

Option A) EIBRESP1, EIBRESP2 - This option is incorrect because EIBRESP1 and EIBRESP2 are not the correct fields for ERROR/EXCEPTION handling in EIB.

Option B) EIBRESP, EIBRESP1 - This option is incorrect because EIBRESP1 is not the correct field for ERROR/EXCEPTION handling in EIB.

Option C) EIBRESP, EIBRESP2 - This option is correct because both EIBRESP and EIBRESP2 fields can be used for ERROR/EXCEPTION handling in EIB. The EIBRESP field contains the main response code, while the EIBRESP2 field contains additional information related to the error or exception.

Option D) EIBRESP0, EIBRESP1 - This option is incorrect because EIBRESP0 is not the correct field for ERROR/EXCEPTION handling in EIB.

The correct answer is C. This option is correct because both EIBRESP and EIBRESP2 fields can be used for ERROR/EXCEPTION handling in EIB.

How many extents are possible for a sequential file?

  1. 20 extents on a volume for a sequential file

  2. 26 extents on a volume for a sequential file

  3. 14 extents on a volume for a sequential file

  4. 16 extents on a volume for a sequential file


Correct Option: D

AI Explanation

To answer this question, we need to understand what an extent is in the context of a sequential file.

In a sequential file, data is stored in blocks or units called extents. An extent is a contiguous section of storage space on a storage volume. When a sequential file is created, it can be allocated multiple extents to store its data.

The correct answer is D) 16 extents on a volume for a sequential file. This means that a sequential file can have up to 16 extents allocated on a storage volume to store its data.

How many extents are possible for a VSAM file

  1. 123 extents for a VSAM file.

  2. 113 extents for a VSAM file.

  3. 133 extents for a VSAM file.

  4. 143 extents for a VSAM file.


Correct Option: A

AI Explanation

To answer this question, we need to understand the concept of extents in VSAM (Virtual Storage Access Method) files.

In VSAM, a file is divided into multiple extents. An extent is a contiguous block of storage allocated to a file. Each extent can contain a certain number of records.

The maximum number of extents that can be allocated to a VSAM file depends on the size of each extent and the total storage available.

Based on the information provided, the correct answer is: Option A) 123 extents for a VSAM file.

This option is correct because it states that a VSAM file can have 123 extents.

What happens if both JOBLIB & STEPLIB is specified?

  1. JOBLIB is ignored

  2. STEPLIB is ignored

  3. Both are active

  4. Both are ignored


Correct Option: A

What characters indicate the JCL card is a comment card

  1. /*/ in columns 1 – 3

  2. //* in columns 1 – 3

  3. //- in columns 1 - 3

  4. /-/ in columns 1 – 3


Correct Option: B

What does a disposition of (NEW,CATLG,DELETE) mean?

  1. Indicates a new dataset and allocated, to CATLG the dataset if the step is successful and to delete the dataset if the step abends.

  2. Indicates a new dataset and needs to be allocated, to CATLG the dataset if the step is unsuccessful and to delete the dataset if the step abends.

  3. Indicates a new dataset and needs to be allocated, to CATLG the dataset if the step is successful and to delete the dataset if the step abends.

  4. Indicates a new dataset and allocated, to CATLG the dataset if the step is unsuccessful and to delete the dataset if the step not abends.


Correct Option: C

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) Indicates a new dataset and allocated, to CATLG the dataset if the step is successful and to delete the dataset if the step abends. This option is incorrect. The correct disposition would be to catalog the dataset if the step is successful, not to allocate and catalog it.

Option B) Indicates a new dataset and needs to be allocated, to CATLG the dataset if the step is unsuccessful and to delete the dataset if the step abends. This option is incorrect. The correct disposition would be to delete the dataset if the step abends, not if it is unsuccessful.

Option C) Indicates a new dataset and needs to be allocated, to CATLG the dataset if the step is successful and to delete the dataset if the step abends. This option is correct. The disposition (NEW,CATLG,DELETE) indicates that the dataset is new and needs to be allocated. If the step is successful, the dataset should be cataloged. If the step abends (fails), the dataset should be deleted.

Option D) Indicates a new dataset and allocated, to CATLG the dataset if the step is unsuccessful and to delete the dataset if the step not abends. This option is incorrect. The correct disposition would be to delete the dataset if the step abends (fails), not if it doesn't abend.

The correct answer is C. This option is correct because it accurately describes the disposition (NEW,CATLG,DELETE) as indicating a new dataset that needs to be allocated. If the step is successful, the dataset should be cataloged, and if the step abends (fails), the dataset should be deleted.

What are the three major types of JCL statements?

  1. JOB,TIME, PARM

  2. EXEC,TIME,PARM

  3. JOB, EXEC, DD

  4. DD,TIME,PARM


Correct Option: C

How do you reference the most current generation of a GDG (generation data group)?

  1. By placing a +1 in parenthesis immediately after a dataset name. As in DSN=GDG.NAME(+1)

  2. By placing a -0 in parenthesis immediately after a dataset name. As in DSN=GDG.NAME(-0)

  3. By placing a -1 in parenthesis immediately after a dataset name. As in DSN=GDG.NAME(-1)

  4. By placing a +0 in parenthesis immediately after a dataset name. As in DSN=GDG.NAME(+0)


Correct Option: D

AI Explanation

To reference the most current generation of a GDG (generation data group), you need to use the syntax DSN=GDG.NAME(+0), which is described in option D.

Let's go through each option to understand why it is correct or incorrect:

Option A) By placing a +1 in parenthesis immediately after a dataset name. As in DSN=GDG.NAME(+1) This option is incorrect because by placing +1 in parenthesis, you are referencing the next generation of the GDG, not the current one.

Option B) By placing a -0 in parenthesis immediately after a dataset name. As in DSN=GDG.NAME(-0) This option is incorrect because -0 is not a valid syntax for referencing the most current generation of a GDG.

Option C) By placing a -1 in parenthesis immediately after a dataset name. As in DSN=GDG.NAME(-1) This option is incorrect because by placing -1 in parenthesis, you are referencing the previous generation of the GDG, not the current one.

Option D) By placing a +0 in parenthesis immediately after a dataset name. As in DSN=GDG.NAME(+0) This option is correct because +0 specifies the most current generation of the GDG.

The correct answer is D. This option is correct because it uses the correct syntax to reference the most current generation of a GDG.

  1. Run if return codes from any previous step(s) were equal to zero. Skip this step if the return code from any previous steps are not equal to zero (0,NE).

  2. Run if return codes from any previous step(s) were not equal to zero. Skip this step if the return code from any previous steps are equal to zero (0,NE).

  3. Run if return codes from any previous step(s) were equal to zero. Run this step if the return code from any previous steps are not equal to zero (0,NE).

  4. Run if return codes from any previous step(s) were not equal to zero. Run this step if the return code from any previous steps are not equal to zero (0,NE).


Correct Option: A

How would you limit the time allotted for a job?

  1. With a TIMELMT parm

  2. With a TIME parm

  3. With a TIMELIMIT parm

  4. With a TIMELT parm


Correct Option: B

What is S322 abend?

  1. Indicates a time out abend.

  2. Caused by invalid data in a numeric field.

  3. Storage violation error

  4. Indicate dataset out of space


Correct Option: A

What is CAS?

  1. Credit Authentication System

  2. Credit Analyzer System

  3. Credit Authorization System

  4. Commulative Analysis Store


Correct Option: C
- Hide questions