Mainframe Technologies: JCL, COBOL, VSAM and DB2

mainframe Online Quiz - 22

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What is the use of SUM FIELDS=NONE in SORT statement

  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
Question 2 Multiple Choice (Single Answer)

Which of the following is correct

  1. A. Plan – Package – collection – DBRM
  2. B. Plan-Package – DBRM – collection
  3. C. Plan – collection – package – DBRM
  4. D. None
Question 3 Multiple Choice (Single Answer)

Which of the following is true about Level numbers?

  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.
Question 4 Multiple Choice (Single Answer)

In a Proc, if a particular Step is set to execute only on below COND parameter. (4,LT,STEP330),(4,LT,STEP340) What does it mean?

  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
Question 5 Multiple Choice (Single Answer)

What is the parameter of REGION to be given to pick maximum space declared

  1. (A) REGION=0K OR 0M
  2. (B) REGION=OK or OM
  3. (C) REGION=0M
  4. (D) REGION=OM
Question 6 Multiple Choice (Single Answer)

What is the DISP parameter given to append records with existing?

  1. (A) SHR
  2. (B) OLD
  3. (C) NEW
  4. (D) MOD
Question 7 Multiple Choice (Single Answer)

Which of the below lines of PARA-A has COBOL rules missed. PARA-A. IF A=B (Line No.1) NEXT SENTENCE (Line No.2) ELSE (Line No.3) IF C=D (Line No.4) Move 20 to C (Line No.5) Move A B to C (Line No.6) Move B to C D (Line No.7) End-If (Line No.8) Move A to B (Line No.9) Move C to D (Line No.10) PARA-EXIT. EXIT.

  1. (A) END-IF was missed for a IF
  2. (B) Dot was missed in last line of PARA-A(line no.10)
  3. (C) Line No. 7
  4. (D) Line No. 6
Question 8 Multiple Choice (Single Answer)

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.
Question 9 Multiple Choice (Single Answer)

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

  1. (A) Job Delimiter /*
  2. (B) Joblib
  3. (C) Exec
  4. (D) None
Question 10 Multiple Choice (Single Answer)

In the IEBGENER utility, what is the maximum number of datasets can be used in SYSUT1.

  1. (A) 16
  2. (B) 24
  3. (C) 32
  4. (D) 48
Question 11 Multiple Choice (Single Answer)

While running a JCL, what at is the abend thrown for time out?

  1. (A) S322
  2. (B) SB37
  3. (C) S122
  4. (D) SOC7
Question 12 Multiple Choice (Single Answer)

What is the syntax to Restart from a particular step in a Proc, but subsequent steps not to be executed. No NULL should be placed in Proc.

  1. (A) RESTART= STEPNO
  2. (B) RESTART=PROCNAME.STEPNO
  3. (C) RESTART= STEPNO, COND=(0,LE)
  4. (D) RESTART=PROCNAME.STEPNO,COND=(0,LE)
Question 13 Multiple Choice (Multiple Answers)

Which of the following is true about a VSAM file?

  1. (A) Should have a Key of any length and anywhere
  2. (B) Value of Records in Key should be in sorted order
  3. (C) VSAM file cannot have a Total Length as Key
  4. (D) Key should start only at first byte.
Question 14 Multiple Choice (Single Answer)

Suppose if the Variables A and B are declared as S9(7) and 9(7). Which of the below statement(s) violate COBOL rules.

  1. (A) Compute A = A / 10
  2. (B) Multiply B by 100
  3. (C) Move 80 to B C
  4. (D) Move 10 to A B.
Question 15 Multiple Choice (Single Answer)

Suppose if a Dataset is created with RECFM=FBA, and then if the same is browsed, what is the Total length observed.

  1. (A) Total length declared
  2. (B) Total Length declared – 1
  3. (C) Total Length declared + 1
  4. (D) None of the above
Question 16 Multiple Choice (Single Answer)

A KSDS VSAM has both data and index components. Is this statement

  1. (A) True
  2. (B) False.
  3. NA
  4. Na
Question 17 Multiple Choice (Single Answer)

Can a file declared in Cobol program be ran in Jcl without having it.

  1. (A) Yes
  2. (B) No
  3. NA
  4. Na
Question 18 Multiple Choice (Single Answer)

How do you check syntax of JCL without running it?

  1. (A) JSCAN
  2. (B) TYPERUN=SCAN on Job card
  3. (C) TYPERUN=JEM on Job card
  4. (D) (a) or (b)
Question 19 Multiple Choice (Single Answer)

VERIFY can be used for Empty datasets. Is this statement

  1. (A) True
  2. (B) False.
  3. NA
  4. Na
Question 20 Multiple Choice (Single Answer)

Can a field X(10) be redefined with S9(12).

  1. (A) Yes
  2. (B) No
  3. NA
  4. Na