Mainframe JCL, COBOL, and IMS Fundamentals

Covers core mainframe computing topics including JCL job control language, COBOL programming language features, and IMS database management system functions and utilities.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

How can a job send a status message to a TSO user at the completion of a job ?

  1. STATUS
  2. NOTIFY
  3. ENDMSG
  4. USER
Question 2 Multiple Choice (Single Answer)

How can a job send a status message to a TSO user at the completion of a job ?

  1. STATUS
  2. NOTIFY
  3. ENDMSG
  4. USER
Question 3 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 the generation number
Question 4 Multiple Choice (Single Answer)

What is the utility to run a COBOL-IMS pgm or COBOL-IMS-DB2 pgm?

  1. DFSUC00
  2. DFSRC00
  3. DFMRC00
  4. DFSQC00
Question 5 Multiple Choice (Single Answer)

What is the DLI function code to restart a program ?

  1. XRST
  2. SYNC
  3. FCHK
  4. CCHK
Question 6 Multiple Choice (Single Answer)

What is the PROCOPT option to use, if you doesn't want IMS to lock the segment?

  1. G
  2. GON
  3. GO
  4. GOT
Question 7 Multiple Choice (Single Answer)

What is the last statement in a COBOL-IMS pgm?

  1. STOP RUN
  2. EXIT
  3. STOP
  4. GO BACK
Question 8 Multiple Choice (Single Answer)

What are the status codes returned: a) If the IMS database is offline b) Program Attempt to insert a segment with a duplicate key

  1. AJ, FW
  2. DJ, FH
  3. FH, II
  4. II, FH
Question 9 Multiple Choice (Single Answer)

What is the function code for condition checkpoint call?

  1. FCHK
  2. CHK
  3. CCHK
  4. CHKK
Question 10 Multiple Choice (Single Answer)

WS-XYZ PIC S9(5) USAGE COMP-3. How many bytes will this occupy?

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

WS-COUNT PIC 9 VALUE 1... PERFORM UNTIL WS-COUNT >= 2 DISPLAY WS-COUNT ADD +1 TO WS-COUNTEND-PERFORMWhat will be the output?

  1. 9
  2. 2
  3. 1
  4. 1, 2
Question 12 Multiple Choice (Single Answer)

01 WS-CHECK PIC X 88 TCS VALUE Y . . . MOVE 'T' TO WS-CHECK IF TCS DISPLAY 'T' ELSE DISPLAY 'X' END-IF What will be the output?

  1. X
  2. Y
  3. T
  4. S
Question 13 Multiple Choice (Single Answer)

01 WS-ABCD PIC X(8) VALUE SPACES . . . INSPECT WS-ABCD TALLYING WS-COUNT FOR ALL SPACES DISPLAY WS-COUNT What will be the output?

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

CALL 'PGMA' USING WS-XYX. Is this a static call or dynamic call?

  1. Always static
  2. Always dynamic
  3. Depends on compiler option
  4. Neither static nor dynamic
Question 15 Multiple Choice (Single Answer)

Maximum number of Job Steps (EXEC) allowed in a Job

  1. 122
  2. 255
  3. 254
  4. Unlimited
Question 16 Multiple Choice (Single Answer)

Maximum numb of DD statements allowed in a JOB

  1. 3273
  2. 3237
  3. 1024
  4. No limit
Question 17 Multiple Choice (Single Answer)

Maximum number of characters that can be passed to a COBOL program throug PARM?

  1. No Limit
  2. 255
  3. 100
  4. 150
Question 18 Multiple Choice (Single Answer)

What is the maximum number of in-stream PROCs allowed in a JCL?

  1. 13
  2. 14
  3. 15
  4. 16
Question 19 Multiple Choice (Single Answer)

What is the maximum number of statements allowed in one PROC?

  1. 1024
  2. 512
  3. 255
  4. No Limit
Question 20 Multiple Choice (Single Answer)

What is the maximum number of lines allowed in one JCL statement?

  1. 126
  2. 255
  3. 512
  4. 1024