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

For how long a job can be executed continuously in a Mainframe

  1. 248 Days

  2. 250 Days

  3. 252 Days

  4. 258 Days


Correct Option: A

AI Explanation

To answer this question, we need to understand the maximum limit for job execution in a Mainframe.

In a Mainframe system, the maximum limit for a job execution is typically determined by the maximum value that can be represented by a signed 32-bit integer. This value is 2,147,483,647.

To calculate the maximum time a job can be executed continuously, we need to convert this value from seconds to days. There are 86,400 seconds in a day (24 hours * 60 minutes * 60 seconds).

Maximum time = 2,147,483,647 seconds / 86,400 seconds per day

Simplifying the calculation, we find that the maximum time a job can be executed continuously is approximately 24,855.82 days.

Among the given options: A. 248 Days - This option is incorrect because it is much lower than the maximum limit of approximately 24,855.82 days. B. 250 Days - This option is incorrect because it is much lower than the maximum limit of approximately 24,855.82 days. C. 252 Days - This option is incorrect because it is much lower than the maximum limit of approximately 24,855.82 days. D. 258 Days - This option is incorrect because it is much lower than the maximum limit of approximately 24,855.82 days.

Therefore, the correct answer is A) 248 Days.

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

How To Set MDT(Modified Data Tag) Thru Application Program? (Dynamically)?

  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

In which table would you make an entry for a BMS map?

  1. TCT

  2. FCT

  3. PPT

  4. None of the above


Correct Option: C

AI Explanation

To answer this question, you need to understand the purpose of a BMS map and the tables in a computer system.

A BMS (Basic Mapping Support) map is used in mainframe computer systems to define the format and structure of a file or record. It specifies the position, length, and type of each field within the file or record.

In a mainframe system, the tables used for defining the structure of files or records are typically called the File Control Tables (FCT), Program Control Tables (PCT), and Page Control Tables (PPT).

Option A) TCT - The Terminal Control Table (TCT) is used to define the characteristics and behavior of terminals or devices connected to the mainframe system. It is not used for defining the structure of files or records, so it is not the correct answer.

Option B) FCT - The File Control Table (FCT) is used to define the attributes and characteristics of files in a mainframe system. It specifies the physical location, format, and access methods for files. While the FCT is related to file management, it is not specifically used for defining the structure of files or records, so it is not the correct answer.

Option C) PPT - The Program Property Table (PPT) is used to define the structure and properties of a program in a mainframe system. It specifies the program name, load module, program type, and other attributes. The PPT is not directly related to file or record structure definition, but it can be used to store information about the BMS maps associated with a program. Therefore, the PPT is the correct answer for making an entry for a BMS map.

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

The correct answer is C) PPT. This option is correct because the PPT is used to store information about the BMS maps associated with a program in a mainframe system.

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

Which of these field type represent system entities?

  1. STS

  2. PRC

  3. REF

  4. VNM


Correct Option: D

Which field type represent flags or indicators?

  1. VNM

  2. PRC

  3. STS

  4. VAL


Correct Option: C

Which field type is based on another field's type?

  1. REF

  2. QTY

  3. TME

  4. CDE


Correct Option: A

Which type of field's value is calculated at runtime?

  1. Database

  2. Functional

  3. Attribute

  4. Descriptive


Correct Option: B

Which is a database field type in Synon?

  1. PRC

  2. DRV

  3. DTE

  4. ATR


Correct Option: D

Which function field has it's own Action Diagram?

  1. STS

  2. DRV

  3. SUM

  4. ATR


Correct Option: B

Which of the following functional field usage will calculate the total number of employees in department?

  1. MAX

  2. MIN

  3. CNT

  4. SUM


Correct Option: C
- Hide questions