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
Questions
Which control statement is used to indicate the utility that an editing operation is to be performed?
- GENERATE
- MODIFY
- ALTER
- MEMBER
Which is the utility that is used to convert data formats, rearrange input fields and change logical record length?
- IEBDS
- IEHLIST
- IEHPROGM
- IEBGENER
The datasets that are to be compared must satisfy which of the following conditions?
- Both the datasets must have same block size
- Both the datasets must have same record length
- Both the datasets must have same block size and record length
- No condition is required
Must tape dataset definitions include VOL=SER specifications?
- Yes
- Only for Uncataloged datasets
- No
- Only for cataloged datasets
Which control statement is used for reformatting the records that are sorted using SORT function?
- SORTOUT
- OUTREC
- DFSORT
- AFTER
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?
- As the (0) generation
- As the (+1) generation
- As the (-1) generation
- Without generation number
DECLARE TABLE in DCLGEN is necessary.
- True
- False
environments which can access DB2
- TSO
- CICS
- IMS
- BATCH
- ALL THE ABOVE
What is sqlcode -922...?
- SELECT statement has resulted in retrieval of more than one row
- AUTHORIZATION FAILURE
- consistency tokens in the DBRM and the load module are different
- NONE OF THE ABOVE
How many clustering indexes can be defined for a table..?
- one
- two
- six
- four
DECLARE CURSOR is executable.
- True
- False
Count(*) ignores null
- True
- False
subqueries cannot have union
- True
- False
Sqlcode foreign key constraint is
- 531
- 530
- 513
- 533
default of orderby is
- DSC
- ASC
- DSS
- ASS
Which of the following is not an isolation type
- RR
- CS
- RS
- SS
Which of the following statements about PL/I programs are TRUE? (2 answers)
- a program must always begin with a PROCEDURE statement and end with an END statement
- PL/I instructions can be coded between positions 1 and 72
- you have to declare each variable that you are going to use
- a program can be composed out of different procedures
- comment lines have to be preceded by //
A PL/I programmer wants to repeat an instruction 5 times. How can he/she code this?
- REPEAT 5 TIMES;instruction;END;
- DO J=1 TO 5;instruction;END;
- COUNTER = 1;DO WHILE COUNTER < 5;COUNTER = COUNTER + 1;instruction;END;
- REPEAT VARYING COUNTER FROM 1 BY 1 UNTIL COUNTER = 5;instruction;END;
Which of the following names of variables for data items are syntactically correct? (2 answers)
- READ
- RECORD-IN
- @_RECORD
- IN/OUTRECORD
- 1_TELEPHONE
Where in a PL/I program are you obliged to code a ; (semi colon) ? (3 answers)
- after each declaration of a variable
- at the end of each instruction
- to end a DO instruction
- at the end of the program
- to end an IF instruction