Mainframe Programming Quiz

Quiz covering JCL, COBOL, CICS, CA-7, DB2 SQL, and REXX mainframe technologies

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What is the range of length of JOB NAME?

  1. 1-10
  2. 1-8
  3. 8
  4. 1-5
Question 2 True/False

A Maximum of 256 EXEC Statements can be coded in a single job.

  1. True
  2. False
Question 3 True/False

Temporary Datasets can be coded by using two ampersands followed by name.

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

VERY = VERIFY(RAMKUMAR,'JJK',M) SAY 'VERY IS : ' VERY

  1. 3
  2. 4
  3. 1
  4. 2
Question 5 Multiple Choice (Single Answer)

SAY POS('KUM',RAMAKUMAR)

  1. 3
  2. 4
  3. 5
  4. 6
Question 6 Multiple Choice (Single Answer)

SAY INSERT('RAMKUM','ORD', 10, 6)

  1. ORD RAMKUM
  2. RAMKUM ORD
  3. RAMORD KUM
  4. ORDRAM KUM
Question 7 Multiple Choice (Single Answer)

SUM = 123 D = RIGHT(LEFT(SUM,7,'0'),10,'0') SAY D

  1. 0000000123
  2. 0000123000
  3. 1230000000
  4. 0001230000
Question 8 Multiple Choice (Single Answer)

A = WORDINDEX('RAM KUMAR IS',2) B = WORDLENGTH('RAM KUMAR IS',1) SAY A || B

  1. 331
  2. 131
  3. 113
  4. 133
Question 9 Multiple Choice (Single Answer)
  1. //CKPTPARM DD * RMYPX555,FORCEALL=Y,CKPTABND=00002,PGMNAME=&PGM,PGMOCC=TEST The above statetment in a JCL
  1. takes a checkpoint after two records
  2. takes a check point every 2 seconds
  3. abends before taking the second check point
  4. takes a check point every 2 minutes
Question 10 True/False

Load Modules of programs can be created as Sequential files

  1. True
  2. False
Question 11 Multiple Choice (Multiple Answers)

JCL abend code S822 pertains to

  1. Data Set Not found
  2. Space Abend
  3. Load module not found
  4. Time Out abend
Question 12 Multiple Choice (Single Answer)

SQL STATE 2000 is the same as

  1. SQL CODE 100
  2. SQL CODE -911
  3. SCLCODE -811
  4. SQLCODE -305
Question 13 True/False

I can set the return code of JCL from my program

  1. True
  2. False
Question 14 Multiple Choice (Multiple Answers)

WS-NUM-1 PIC S9(04)MOVE -95 TO WS-NUM-1DISPLAY WS-NUM-1 What will be the display?

  1. 009E
  2. 009N
  3. 0095
  4. -0095
Question 15 True/False

Data stored in TSQ can be accessed across multiple CICS regions

  1. True
  2. False
Question 16 True/False

If a STOP RUN or GO BACK statement is not present in the program, the job will abend

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

What we give as system to go to CA7?

  1. ADTSO
  2. ODTSO
  3. ODUCC7
  4. ADUCC7
Question 18 Multiple Choice (Single Answer)

What is the command to display all job information for a particular job?

  1. LJOB,LIST=TRIG,JOB=
  2. LJOB,LIST=ALL ,JOB=
  3. LJOB,LIST=RQJOB,JOB=
  4. LQ,SEQ=JOB
Question 19 Multiple Choice (Single Answer)

List of all job in CA7 Queue and their status (PF Key)

  1. PF2
  2. PF4
  3. PF5
  4. PF3
Question 20 Multiple Choice (Single Answer)

What is the PF key is ued to view the schedule and calander for a job

  1. PF4
  2. PF8
  3. PF9
  4. PF10