0

mainframe Online Quiz - 144

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

How many extents are possible for a sequential file,VSAM file

  1. 10 for sequential, 120 for VSAM

  2. 16 for sequential, 123 for VSAM

  3. 10 for sequential, 10 for VSAM

  4. 16 for sequential, 16 for VSAM


Correct Option: B

If you do not know the space required by a dataset then you allocate the maximum space to it. How do you free up the unused spaces.

  1. Use Unallocate

  2. Use RLSE parameter in SPACE

  3. both of the above

  4. none of the above


Correct Option: B

What does Time=1440 sgnify?

  1. The job can execute for 1440 CPU secs

  2. The job can execute for 1440 CPU minutes

  3. No CPU time limit to be applied

  4. None of the above


Correct Option: C

AI Explanation

To answer this question, you need to understand the significance of the value "1440" in the context of time limits for job execution.

Option A) The job can execute for 1440 CPU seconds - This option is incorrect because the value "1440" does not represent CPU seconds. It represents a different concept.

Option B) The job can execute for 1440 CPU minutes - This option is incorrect because the value "1440" does not represent CPU minutes. It represents a different concept.

Option C) No CPU time limit to be applied - This option is correct. The value "1440" signifies that there is no CPU time limit to be applied to the job. The job can execute without any restrictions on the amount of CPU time it consumes.

Option D) None of the above - This option is incorrect because Option C is the correct answer.

The correct answer is Option C. This option is correct because the value "1440" signifies that there is no CPU time limit to be applied to the job.

What is the prefix character for the symbolic parameters

  1. %

  2. @

  3. &

  4. #


Correct Option: C

What is the purpose of the REGION keyword

  1. specifies the amount of space required by a step

  2. specifies the amount of space required by a job

  3. both of the above

  4. none of the above


Correct Option: C

If a generation data set is specified as input without the generation number, what will the input to the DD ?

  1. the most recent generation created

  2. the last reference to GDG no in step

  3. concatenation of all the cataloged generations

  4. JCL error retunred by the job


Correct Option: C

AI Explanation

To answer this question, let's understand the concepts involved:

A Generation Data Set (GDG) is a series of related data sets that are created and managed as a group. Each GDG has a base name and a generation number. The generation number represents the version or instance of the data set.

When a generation data set is specified as input without the generation number, it means that all the generations of that GDG will be considered.

Now, let's go through each option to understand why it is correct or incorrect:

Option A) the most recent generation created - This option is incorrect because when no generation number is specified, it means all generations are considered, not just the most recent one.

Option B) the last reference to GDG no in step - This option is incorrect because when no generation number is specified, it means all generations are considered, not just the last reference.

Option C) concatenation of all the cataloged generations - This option is correct. When a generation data set is specified as input without the generation number, the DD (data definition) statement will concatenate all the cataloged generations of that GDG.

Option D) JCL error returned by the job - This option is incorrect because no JCL error is returned when a generation data set is specified without the generation number. It is a valid operation that will concatenate all the cataloged generations.

The correct answer is Option C - concatenation of all the cataloged generations. This option is correct because when no generation number is specified, the DD statement will concatenate all the cataloged generations of the GDG.

If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?

  1. Without the generation number

  2. As the (+1) generation

  3. As the (0) generation

  4. Either option 1 or 2

  5. Either option 1 or 3


Correct Option: B

What parameter of the job statement is used to limit the CPU time consumed by the job?

  1. RUNTIME

  2. TIME

  3. LIMIT

  4. EXECMAX


Correct Option: B

What is the purpose of DD DUMMY statement

  1. Marks a deleted DD statement

  2. Specifies no space allocation & no disposition processing

  3. Suppress command processing

  4. Begins an interpreted command stream


Correct Option: B

What is the maximum length of a single line of JCL

  1. 71

  2. 80

  3. 60

  4. 55


Correct Option: A

AI Explanation

To answer this question, you need to understand JCL (Job Control Language) and its limitations.

JCL is a scripting language used on IBM mainframe systems to control batch processing. Each line of JCL has a maximum length that must be adhered to for the JCL to be processed correctly.

The correct answer is A) 71.

The maximum length of a single line of JCL is 71 characters. This limitation is due to the historical restrictions of punched cards, which were used as input for mainframe systems. Punched cards typically had 80 columns, but the last 9 columns were reserved for sequence numbers and other control information. Therefore, only the first 71 columns of a punched card were used for JCL statements.

While the correct answer is A) 71, it's worth noting that modern JCL systems can often handle lines of up to 80 characters. However, to ensure compatibility with older systems and to maintain consistency, it is generally recommended to limit JCL statements to 71 characters.

1) Can I redefine an X(200) field with a field of X(100).

  1. True

  2. False


Correct Option: A

2) What is the file status for Logic error?

  1. 44

  2. 92

  3. 61

  4. 89


Correct Option: B

AI Explanation

To answer this question, we need to understand the different file status codes used in programming.

In programming, a file status code is a way of indicating the status of a file operation, such as opening or closing a file. It helps programmers to identify and handle any errors that may occur during file operations.

The correct answer is B) 92.

Option A) 44 - This option is incorrect. File status code 44 typically represents a "No Current Record" error, indicating that the requested record is not found in the file.

Option B) 92 - This option is correct. File status code 92 is commonly associated with a "Logic Error" or "Program Logic Error." It indicates that there is an error in the program logic, such as an incorrect calculation or an incorrect sequence of operations.

Option C) 61 - This option is incorrect. File status code 61 usually represents an "Disk Full" error, indicating that there is not enough space on the disk to perform the file operation.

Option D) 89 - This option is incorrect. File status code 89 typically represents a "Bad File Mode" error, indicating that the file is opened in an invalid mode for the requested operation.

Therefore, the correct answer is B) 92, as it represents a Logic Error.

3) What compiler option would you use for dynamic linking?

  1. DYNM

  2. NDYNAM

  3. DYNA

  4. DYNAM


Correct Option: D

4) The maximum number of dimensions that an array can have in COBOL-85 is -----?

  1. 6

  2. 8

  3. 7

  4. 9


Correct Option: C

AI Explanation

To answer this question, we need to understand the maximum number of dimensions that an array can have in COBOL-85.

Option A) A. 6 - This option is incorrect because the maximum number of dimensions in COBOL-85 is not 6.

Option B) B. 8 - This option is incorrect because the maximum number of dimensions in COBOL-85 is not 8.

Option C) C. 7 - This option is correct. In COBOL-85, the maximum number of dimensions that an array can have is 7.

Option D) D. 9 - This option is incorrect because the maximum number of dimensions in COBOL-85 is not 9.

The correct answer is C. The maximum number of dimensions that an array can have in COBOL-85 is 7.

DCB for LOADLIB should be

  1. LRECL= 80, RECFM=FB

  2. LRECL=225, RECFM=VB

  3. LRECL=80,RECFM=U

  4. LRECL=80, RECFM=VB


Correct Option: C

Which is not the stage in Endevor Life cycle?

  1. UT

  2. QA

  3. INT

  4. None


Correct Option: D

Which of the below is incorrect taking Endevor advantage into consideration?

  1. Traceability

  2. Audit or verify any Action

  3. Not version control

  4. Creation of executables automatically


Correct Option: C

What is the minimum number of environment stages in Endevor?

  1. 4

  2. 2

  3. 3

  4. 1


Correct Option: B

What functions can be performed in Endevor?

  1. View and retrieve prior levels of elements

  2. Only view prior levels of elements

  3. Only retrieve prior levels of elements

  4. None


Correct Option: A

Integration stage procedure includes the following

  1. Retrieving elements from production

  2. changing elements

  3. Moving elements to production

  4. All of the above


Correct Option: D
- Hide questions