Tag: mainframe

Questions Related to mainframe

Job have 3 steps in 1) Step01 creating New GDG file(+), 2) Step02 Delete file(+), 3) Step03 create new GDG file with same file name JCL has been executed twice What is the version for that file?

  1. gdg(0)

  2. gdg(+3)

  3. gdg(+4)

  4. gdg(+2)


Correct Option: C

AI Explanation

To determine the version of the file after executing the given JCL steps, let's analyze each step:

1) Step01: Creating a new GDG file with the same file name.

  • This step will create a new version of the GDG file with a higher version number.

2) Step02: Deleting the file.

  • This step will remove the current version of the GDG file.

3) Step03: Creating a new GDG file with the same file name.

  • This step will create a new version of the GDG file with a higher version number.

Since the JCL has been executed twice, the final version of the GDG file will be increased by 2 (one for each execution of the JCL).

Given that the initial GDG file version is 0, the final version of the file will be gdg(+4) (0 + 2 + 2 = 4).

Therefore, the correct answer is C) gdg(+4).

  1. Space abend

  2. data exception abend

  3. previleged operation exception

  4. all the above


Correct Option: A
  1. block size parameter while referring a dataset

  2. Record length parameter while referring data set

  3. that is the unit parameter while referring a data set

  4. none of the above


Correct Option: C
  1. Force start the database

  2. Bind the database

  3. Drop the table

  4. none of the above


Correct Option: B
  1. Identification division

  2. Procedure division

  3. Environment divion

  4. Data division


Correct Option: D
  1. special display screen facility

  2. Spool display & search facility

  3. special display & search facility

  4. Spool dispaly screen facility


Correct Option: B
  1. PRIVILEGED OPERATION EXCEPTION

  2. DATA EXCEPTION

  3. SPACE ISSUE

  4. None of the above


Correct Option: A
Explanation:

To understand the cause of abend SOC2, the user needs to know about the different types of abends and their meaning. Abend SOC2 is a type of abend that occurs when a user's program attempts to execute a privileged operation that it is not authorized to perform.

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

A. PRIVILEGED OPERATION EXCEPTION: This option is correct. Abend SOC2 occurs when a user's program attempts to execute a privileged operation that it is not authorized to perform. This can happen when a user attempts to access a file or perform some other operation that requires a higher level of authority than they currently have.

B. DATA EXCEPTION: This option is incorrect. Abend SOC7 occurs when a program attempts to perform an operation on an invalid or improperly formatted data item.

C. SPACE ISSUE: This option is incorrect. Abend SB37 occurs when a program attempts to write to a data set that does not have enough space available to accommodate the data being written.

D. None of the above: This option is incorrect. As explained above, abend SOC2 occurs when a program attempts to execute a privileged operation without the necessary authority.

Therefore, the answer is: A. PRIVILEGED OPERATION EXCEPTION.

  1. to describe independent elementary items

  2. it is used to define the db2 char in cobolas var char

  3. used to give condition names to the values that a field contain

  4. all of the above


Correct Option: B

Where is a period required in Cobol?

  1. After the last statement in each paragraph

  2. At the end of the word DIVISION

  3. At the end of the word SECTION

  4. All of the above


Correct Option: D

AI Explanation

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

Option A) After the last statement in each paragraph - This option is correct. In COBOL, a period is required after the last statement in each paragraph to mark the end of the paragraph.

Option B) At the end of the word DIVISION - This option is correct. In COBOL, a period is required at the end of the word DIVISION to mark the end of the division.

Option C) At the end of the word SECTION - This option is correct. In COBOL, a period is required at the end of the word SECTION to mark the end of the section.

Option D) All of the above - This option is correct. As explained in options A, B, and C, a period is required after the last statement in each paragraph, at the end of the word DIVISION, and at the end of the word SECTION. Therefore, all of the above options are correct.

The correct answer is D. This option is correct because all of the above statements are true.

  1. when the dataset can be extended

  2. when the dataset can be newly created

  3. just to share the dataset & not for editing

  4. when dataset needs to be edited & deleted


Correct Option: A