Tag: mainframe

Questions Related to mainframe

  1. (A) Have only Duplicate records from input to output

  2. (B) Remove Duplicates records and write as single instance in output

  3. (C) Have only non Duplicate records from input to output

  4. (D) None of the above


Correct Option: B
  1. A. Plan – Package – collection – DBRM

  2. B. Plan-Package – DBRM – collection

  3. C. Plan – collection – package – DBRM

  4. D. None


Correct Option: C
  1. (A) Level numbers can start from 0 to 99 and there are no Special Level numbers

  2. (B) Level numbers can start from 0 to 99 and 66, 77 and 88 are Special Level number

  3. (C) Level numbers can start from 0 to 49 and there are no Special Level numbers

  4. (D) Level numbers can start from 0 to 49 and 66, 77 and 88 are Special Level numbers.


Correct Option: D
  1. (A) Only Execute if Step330 and 340 throws <= 4

  2. (B) Only Execute if Step330 or 340 throws <= 4

  3. (C) Only Execute if Step330 and 340 throws = 0

  4. (D) Only Execute if Step330 or 340 throws = 0


Correct Option: C
  1. (A) REGION=0K OR 0M

  2. (B) REGION=OK or OM

  3. (C) REGION=0M

  4. (D) REGION=OM


Correct Option: A

What is the difference between COMP and COMP-3?

  1. (A) COMP is a Binary storage format while COMP-3 is Packed decimal format

  2. (B) COMP is a Packed decimal format while COMP-3 is Binary storage format

  3. (C) Both COMP and Comp-3 are Binary storage format

  4. (D) Both COMP and COMP-3 are Packed decimal format.


Correct Option: A

AI Explanation

To answer this question, you need to understand the difference between COMP and COMP-3 data types in COBOL.

Option A) COMP is a Binary storage format while COMP-3 is a Packed decimal format - This option is correct.

  • COMP is a binary storage format used for storing numeric values as binary integers. It uses one byte for each digit of the number.
  • COMP-3, also known as packed decimal or packed numeric, is a format used for storing decimal numbers in a packed format. It uses half a byte (nibble) for each digit of the number, with the last nibble used for storing the sign of the number.

Option B) COMP is a Packed decimal format while COMP-3 is a Binary storage format - This option is incorrect.

  • The statement in this option is reversed. COMP is a binary storage format, not a packed decimal format.

Option C) Both COMP and COMP-3 are Binary storage format - This option is incorrect.

  • COMP-3 is not a binary storage format. It is a packed decimal format.

Option D) Both COMP and COMP-3 are Packed decimal format - This option is incorrect.

  • COMP is not a packed decimal format. It is a binary storage format.

The correct answer is A) COMP is a Binary storage format while COMP-3 is a Packed decimal format. This option is correct because it accurately describes the difference between COMP and COMP-3 data types in COBOL.

Which of the below JCL statement(s) not allowed in Proc.

  1. (A) Job Delimiter /*

  2. (B) Joblib

  3. (C) Exec

  4. (D) None


Correct Option: A

AI Explanation

To answer this question, you need to understand the JCL (Job Control Language) statements and their usage.

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

Option A) (A) Job Delimiter /* - This option is incorrect because the Job Delimiter statement (/*) is allowed in JCL and is used to mark the beginning of a job. It is not specific to the Proc statement.

Option B) (B) Joblib - This option is incorrect because the Joblib statement is allowed in Proc and is used to specify a library dataset that contains the JCL for the job step.

Option C) (C) Exec - This option is incorrect because the Exec statement is allowed in Proc and is used to specify the program or procedure to be executed in the job step.

Option D) (D) None - This option is incorrect because there are JCL statements that are not allowed in Proc, such as the DD (Data Definition) statements that are used to define input and output datasets.

Based on the given options, the correct answer is A. The Job Delimiter statement (/*) is allowed in JCL and is not specific to the Proc statement.