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.
Questions
How can a job send a status message to a TSO user at the completion of a job ?
- STATUS
- NOTIFY
- ENDMSG
- USER
How can a job send a status message to a TSO user at the completion of a job ?
- STATUS
- NOTIFY
- ENDMSG
- USER
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 the generation number
What is the utility to run a COBOL-IMS pgm or COBOL-IMS-DB2 pgm?
- DFSUC00
- DFSRC00
- DFMRC00
- DFSQC00
What is the DLI function code to restart a program ?
- XRST
- SYNC
- FCHK
- CCHK
What is the PROCOPT option to use, if you doesn't want IMS to lock the segment?
- G
- GON
- GO
- GOT
What is the last statement in a COBOL-IMS pgm?
- STOP RUN
- EXIT
- STOP
- GO BACK
What are the status codes returned: a) If the IMS database is offline b) Program Attempt to insert a segment with a duplicate key
- AJ, FW
- DJ, FH
- FH, II
- II, FH
What is the function code for condition checkpoint call?
- FCHK
- CHK
- CCHK
- CHKK
WS-XYZ PIC S9(5) USAGE COMP-3. How many bytes will this occupy?
- 2
- 3
- 4
- 5
WS-COUNT PIC 9 VALUE 1... PERFORM UNTIL WS-COUNT >= 2 DISPLAY WS-COUNT ADD +1 TO WS-COUNTEND-PERFORMWhat will be the output?
- 9
- 2
- 1
- 1, 2
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?
- X
- Y
- T
- S
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?
- 0
- 1
- 8
- 5
CALL 'PGMA' USING WS-XYX. Is this a static call or dynamic call?
- Always static
- Always dynamic
- Depends on compiler option
- Neither static nor dynamic
Maximum number of Job Steps (EXEC) allowed in a Job
- 122
- 255
- 254
- Unlimited
Maximum numb of DD statements allowed in a JOB
- 3273
- 3237
- 1024
- No limit
Maximum number of characters that can be passed to a COBOL program throug PARM?
- No Limit
- 255
- 100
- 150
What is the maximum number of in-stream PROCs allowed in a JCL?
- 13
- 14
- 15
- 16
What is the maximum number of statements allowed in one PROC?
- 1024
- 512
- 255
- No Limit
What is the maximum number of lines allowed in one JCL statement?
- 126
- 255
- 512
- 1024