0

mainframe Online Quiz - 84

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

Suppose 3 generations of a GDG exist. How would you reference the 1 st generation in the JCL?

  1. Use GDG name(-3)

  2. Use GDG name(-2)

  3. Use GDG name(-1)

  4. Use GDG name(0)


Correct Option: B

What are the maximum and minimum sizes of any CONTROL AREA (VSAM datasets) ?

  1. Minimum Size : 1 track Maximum size : 10 cylinder

  2. Minimum Size : 10 track Maximum size : 1 cylinder

  3. Minimum Size : 0 track Maximum size : 1 track

  4. Minimum Size : 1 track Maximum size : 1 cylinder


Correct Option: D

AI Explanation

To answer this question, we need to understand the concept of control areas in VSAM datasets.

Control areas are logical divisions within a VSAM dataset that contain data records. Each control area has a fixed size.

The given question asks for the maximum and minimum sizes of any control area in VSAM datasets.

Option A) Minimum Size: 1 track Maximum Size: 10 cylinders Option B) Minimum Size: 10 tracks Maximum Size: 1 cylinder Option C) Minimum Size: 0 tracks Maximum Size: 1 track Option D) Minimum Size: 1 track Maximum Size: 1 cylinder

Let's analyze each option:

Option A) Minimum Size: 1 track Maximum Size: 10 cylinders - This option is incorrect. The minimum size of a control area cannot be 1 track, and the maximum size cannot be 10 cylinders.

Option B) Minimum Size: 10 tracks Maximum Size: 1 cylinder - This option is incorrect. The minimum size of a control area cannot be 10 tracks, and the maximum size cannot be 1 cylinder.

Option C) Minimum Size: 0 tracks Maximum Size: 1 track - This option is incorrect. The minimum size of a control area cannot be 0 tracks.

Option D) Minimum Size: 1 track Maximum Size: 1 cylinder - This option is correct. The minimum size of a control area is 1 track, and the maximum size is 1 cylinder.

Therefore, the correct answer is Option D. The minimum size of any control area is 1 track, and the maximum size is 1 cylinder.

How many bytes does a S9(7) SIGN TRAILING SEPARATE field occupy ?

  1. 3 bytes

  2. 4 bytes

  3. 7 bytes

  4. 8 bytes


Correct Option: D
Explanation:

To solve this question, the user needs to be familiar with the format of COBOL numeric fields.

In COBOL, S9(7) SIGN TRAILING SEPARATE represents a numeric field with a maximum of 7 digits, including the sign (positive or negative) and a separator character (usually a comma or a period) that separates the integer and decimal portions of the number. The "SIGN TRAILING SEPARATE" clause specifies that the sign character appears after the digits of the number, while the separator character appears between the last two digits of the integer portion and the first decimal digit.

Now, let's go through each option and explain why it is right or wrong:

A. 3 bytes: This option is incorrect. A numeric field with the "SIGN TRAILING SEPARATE" clause always occupies an even number of bytes. Since the maximum number of digits in S9(7) is 7, and the sign and separator characters each occupy one byte, the field must occupy at least 9 bytes (7 digits + 1 sign + 1 separator).

B. 4 bytes: This option is incorrect for the same reason as option A. A S9(7) SIGN TRAILING SEPARATE field must occupy an even number of bytes, which is at least 9 bytes.

C. 7 bytes: This option is incorrect. As explained above, a S9(7) SIGN TRAILING SEPARATE field must occupy an even number of bytes. Additionally, 7 bytes is not enough to store a 7-digit number with a sign and a separator character.

D. 8 bytes: This option is correct. A S9(7) SIGN TRAILING SEPARATE field must occupy an even number of bytes, which is at least 9 bytes. However, if the number is positive, the sign character is represented by a low-value (i.e., hex 'F') in the leftmost byte of the field. Therefore, if the number is positive, the field occupies only 8 bytes, which is the correct answer.

The Answer is: D

What is file status 39 ?

  1. Mismatch in LRECL between your COBOL pgm & the JCL

  2. Mismatch in BLOCKSIZE between your COBOL pgm & the JCL

  3. Mismatch in RECFM between your COBOL pgm & the JCL

  4. All of the above


Correct Option: D

AI Explanation

To answer this question, we need to understand the concept of file status codes in COBOL.

File status codes are used to indicate the status of a file operation in COBOL programs. Each file operation, such as opening, reading, writing, or closing a file, can result in a specific file status code being returned.

In this case, file status 39 indicates a mismatch between the attributes of a file specified in the COBOL program and the attributes specified in the JCL (Job Control Language) used to execute the program.

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

Option A) Mismatch in LRECL between your COBOL pgm & the JCL - This option is incorrect because file status 39 specifically indicates a mismatch in attributes but does not specify LRECL (Logical Record Length) as the cause.

Option B) Mismatch in BLOCKSIZE between your COBOL pgm & the JCL - This option is incorrect because file status 39 does not specifically indicate a mismatch in BLOCKSIZE.

Option C) Mismatch in RECFM between your COBOL pgm & the JCL - This option is incorrect because file status 39 does not specifically indicate a mismatch in RECFM (Record Format).

Option D) All of the above - This option is correct because file status 39 can occur when there is a mismatch in any of the attributes mentioned in options A, B, or C. Therefore, this is the correct answer.

The correct answer is D) All of the above. This option is correct because file status 39 indicates a mismatch in attributes between the COBOL program and the JCL, which can include LRECL, BLOCKSIZE, or RECFM.

How may divisions are there in JCL-COBOL?

  1. 4

  2. 5

  3. 6

  4. 7


Correct Option: C
  1. Move the macro DFHBMFSE to the attribute field of that particular variable

  2. Move -1 to lenght of the filed

  3. Both of the above

  4. None of the above


Correct Option: A

How can we display negative sign in a map?

  1. Use picin='zz999.99-' in the map field definition

  2. Use picout='zz999.99-' in the map field definition

  3. Both of the above

  4. None of the above


Correct Option: B

What happens if i move +1 to field+l instead of -1 to field+l ?

  1. Cursor will move to the next available field

  2. Cursor will move to the last field.

  3. Cursor will move to the previous available field.

  4. Cursor will be placed on the left upper corner of the screen


Correct Option: D

Can you use OCCURS in a BMS map?

  1. Yes

  2. No

  3. Don't know

  4. Not Sure


Correct Option: A

What is the length of Synon Field Name?

  1. 26

  2. 25

  3. 23

  4. 28


Correct Option: B

Is there a restriction in Synon Field names to start with Alphabets?

  1. True

  2. False


Correct Option: B
  1. Database

  2. Functional

  3. Attribute

  4. Descriptive


Correct Option: B
- Hide questions