Mainframe Technologies: PL/I, DB2, and JCL

Comprehensive quiz covering mainframe computing fundamentals including PL/I programming language, DB2 SQL database management, and JCL job control utilities

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which control statement is used to indicate the utility that an editing operation is to be performed?

  1. GENERATE
  2. MODIFY
  3. ALTER
  4. MEMBER
Question 2 Multiple Choice (Single Answer)

Which is the utility that is used to convert data formats, rearrange input fields and change logical record length?

  1. IEBDS
  2. IEHLIST
  3. IEHPROGM
  4. IEBGENER
Question 3 Multiple Choice (Single Answer)

The datasets that are to be compared must satisfy which of the following conditions?

  1. Both the datasets must have same block size
  2. Both the datasets must have same record length
  3. Both the datasets must have same block size and record length
  4. No condition is required
Question 4 Multiple Choice (Single Answer)

Must tape dataset definitions include VOL=SER specifications?

  1. Yes
  2. Only for Uncataloged datasets
  3. No
  4. Only for cataloged datasets
Question 5 Multiple Choice (Single Answer)

Which control statement is used for reformatting the records that are sorted using SORT function?

  1. SORTOUT
  2. OUTREC
  3. DFSORT
  4. AFTER
Question 6 Multiple Choice (Single Answer)

If a(+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?

  1. As the (0) generation
  2. As the (+1) generation
  3. As the (-1) generation
  4. Without generation number
Question 7 True/False

DECLARE TABLE in DCLGEN is necessary.

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

environments which can access DB2

  1. TSO
  2. CICS
  3. IMS
  4. BATCH
  5. ALL THE ABOVE
Question 9 Multiple Choice (Single Answer)

What is sqlcode -922...?

  1. SELECT statement has resulted in retrieval of more than one row
  2. AUTHORIZATION FAILURE
  3. consistency tokens in the DBRM and the load module are different
  4. NONE OF THE ABOVE
Question 10 Multiple Choice (Single Answer)

How many clustering indexes can be defined for a table..?

  1. one
  2. two
  3. six
  4. four
Question 11 True/False

DECLARE CURSOR is executable.

  1. True
  2. False
Question 12 True/False

Count(*) ignores null

  1. True
  2. False
Question 13 True/False

subqueries cannot have union

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

Sqlcode foreign key constraint is

  1. 531
  2. 530
  3. 513
  4. 533
Question 15 Multiple Choice (Single Answer)

default of orderby is

  1. DSC
  2. ASC
  3. DSS
  4. ASS
Question 16 Multiple Choice (Single Answer)

Which of the following is not an isolation type

  1. RR
  2. CS
  3. RS
  4. SS
Question 17 Multiple Choice (Multiple Answers)

Which of the following statements about PL/I programs are TRUE? (2 answers)

  1. a program must always begin with a PROCEDURE statement and end with an END statement
  2. PL/I instructions can be coded between positions 1 and 72
  3. you have to declare each variable that you are going to use
  4. a program can be composed out of different procedures
  5. comment lines have to be preceded by //
Question 18 Multiple Choice (Single Answer)

A PL/I programmer wants to repeat an instruction 5 times. How can he/she code this?

  1. REPEAT 5 TIMES;instruction;END;
  2. DO J=1 TO 5;instruction;END;
  3. COUNTER = 1;DO WHILE COUNTER < 5;COUNTER = COUNTER + 1;instruction;END;
  4. REPEAT VARYING COUNTER FROM 1 BY 1 UNTIL COUNTER = 5;instruction;END;
Question 19 Multiple Choice (Multiple Answers)

Which of the following names of variables for data items are syntactically correct? (2 answers)

  1. READ
  2. RECORD-IN
  3. @_RECORD
  4. IN/OUTRECORD
  5. 1_TELEPHONE
Question 20 Multiple Choice (Multiple Answers)

Where in a PL/I program are you obliged to code a ; (semi colon) ? (3 answers)

  1. after each declaration of a variable
  2. at the end of each instruction
  3. to end a DO instruction
  4. at the end of the program
  5. to end an IF instruction