Mainframe COBOL and JCL Fundamentals
Test your knowledge of mainframe computing with questions covering COBOL programming (data types, storage formats, control structures) and JCL (job control, dataset management, DD statements).
Questions
Which INFO-Variable is used to store the current user-id which is connected to demand?
- INFO-PREVIOUS-PROGRAM-ID
- INFO-USERID
- INFO-PROGRAM-ID
- INFO-CONVERSATION
CONTINUE is like a null statement (do nothing) , while NEXT SENTENCE transfers control to the next sentence
- True
- False
How many bytes will a S9(8) COMP field occupy ?
- 4
- 7
- 8
- 2
What compiler option would you use for dynamic linking?
- LET
- REUS
- DYNAM
- NULL
A DD statement has 2 types of parameters. Name them ?
- Keyword, Control
- Positional, Keyword
- Dynamic, Static
- Named, Dynamic
How can a job send a status message to a TSO user at the completion of a job ?
- STATUS
- NOTIFY
- ENDMSG
- USER
DD DUMMY statement specifies no space allocation & no disposition processing
- True
- False
What parameters can be used to limit the number of records written to a SYSOUT dataset ?
- LIMIT
- SIZE
- MAX
- OUTLIM
OCCURS clause cannot be at the 01 level?
- True
- False
Sign is stored in the last nibble in a COMP-3 Field
- True
- False
What is the mode in which you will OPEN a file for writing?
- OUTPUT
- INPUT
- EXTEND
- APPEND
How can unused space allocation be returned to the system when a dataset is closed ?
- RETURN
- RLSE
- CONTIG
- CLOSE
What statement marks the end of an in-stream or Catalogued procedure in a JOB?
- STREAM
- SET
- PROC
- PEND
What is the maximum length of a single line of JCL ?
- 71 bytes
- 60 bytes
- 55 bytes
- 80 bytes
Performing a SECTION will cause all the paragraphs that are part of the section, to be performed.
- True
- False
In an EVALUATE statement, I Cannot give a complex condition on a when clause?
- True
- False
COMP is a binary storage format while COMP-3 is packed decimal format.
- True
- False
What is the maximum value that can be stored in S9(8) COMP?
- 9999999
- 999999999
- 99999999
- 9999999999999999
When output dataset space is required, what quantity categories are used ?
- Primary, Secondary, Directory
- Address, Units, CONTIG or ALS
- Displacement and length
- Megabytes, Kilobytes and Bytes
The level number 88 in cobol can be used to
- describe independent elementary items in the Working-Storage section
- give condition names to the values that a field contain
- describe both elementary and group items
- none of the above