Mainframe Systems: JCL, COBOL, DB2, and VSAM

Test your knowledge of mainframe computing including JCL job control, COBOL programming, DB2 database management, and VSAM file handling

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following are the lock types?

  1. shared
  2. update
  3. exclusive
  4. All of the above
Question 2 Multiple Choice (Multiple Answers)

Which VSAM file status code indicates that you are tring to open a VSAM file that is not present?

  1. 05
  2. 41
  3. 35
  4. 91
Question 3 Multiple Choice (Single Answer)

What does a VSAM file status code '10' indicate?

  1. successful completion
  2. Record or file not found
  3. End of file reached
  4. dupliacate key
Question 4 Multiple Choice (Multiple Answers)

When you try to open a VSAM file, which of the following status codes are acceptable?

  1. 00
  2. 92
  3. 07
  4. 97
Question 5 True/False

File status code 86 indicates 'VSAM - MISSING DD STATEMENT IN JCL'. True or false?

  1. True
  2. False
Question 6 True/False

An Index can be defined if the table size is less than 10 PAGES

  1. True
  2. False
Question 7 Multiple Choice (Single Answer)

What is the maximum number of tables that can be stored on a Partitioned Table Space?

  1. 1
  2. 2
  3. 3
  4. 4
Question 8 True/False

The best locksize that you could use when you create a tablespace is ANY.

  1. True
  2. False
Question 9 True/False

SQLCABC contains value of SQLCA.

  1. True
  2. False
Question 10 True/False

CPU processing is more important for DB2 system performance.

  1. True
  2. False
Question 11 True/False

DECLARE CURSOR is executable.

  1. True
  2. False
Question 12 Multiple Choice (Single Answer)

88 level used for

  1. condition names
  2. RENAMES clause
  3. All the above
  4. None
Question 13 Multiple Choice (Single Answer)

77 level used for

  1. Elementary level item
  2. condition names
  3. RENAMES clause.
  4. All the above
Question 14 Multiple Choice (Single Answer)

level 66 used for

  1. Elementary level item
  2. Condition names.
  3. RENAMES clause
  4. All the above
Question 15 Multiple Choice (Single Answer)

SEARCH command used for

  1. binary search & the table must be sorted
  2. serial search
  3. binary search
  4. All the above
Question 16 True/False

To restart a PROC from a particular step, we need to specify RESTART=PROCSTEP.STEPNAME in the Job CARD. where PROCSTEP = name of the JCL step that invoked the PROC and STEPNAME = name of the PROC step where you want execution to start.

  1. True
  2. False
Question 17 True/False

If we specify COND=ONLY in a step. This means that particular step is executed only of any of the previous steps, terminated abnormally.

  1. True
  2. False
Question 18 True/False

TYPERUN=JSCAN in the JOB card is used to check the syntax of the JCL without running it.

  1. True
  2. False
Question 19 True/False

The JOB, EXEC,DD and IF () ENDIF are the Job Control statements.

  1. True
  2. False
Question 20 True/False

DISP=MOD is used when the dataset can be extended.

  1. True
  2. False