IBM Mainframe JCL Programming
Quiz covering JCL statements, procedures, DD statements, COBOL programming rules, and mainframe job control concepts
Questions
One job has abended due to SB37 abend code. What should be the solution?
- The program is not getting special resource
- Input or Output datasets have some space unavailability
- The job has abended because of database problem.
- None of the above
What is the purpose of DD * statement in JCL?
- Begins the input data prompt at the system console
- Begins an instream dataset
- Marks the end of the command stream
- Includes all datasets within a naming pattern
How can a job send a status message to TSO user at the completion of job?
- STATUS
- NOTIFY
- ENDMSG
- USER
How can un used space allocation be returned to the system when a dataset is closed?
- RETURN
- RLSE
- CONTIG
- CLOSE
Where can program check points be stored for use in a restart?
- SYSCHK DD statement
- CHCKPOINT DD statement
- CHKOUT DD statement
- CHECK or DD statement
What statement marks the end of instream or catalogued procedure?
- STREAM
- SET
- PROC
- PEND
How can an instream dataset be terminated
- //
- //*
- /*
- None of the above
What is the maximum size of single line of JCL?
- 71
- 60
- 55
- 80
How can return codes be tested before execution of the job step?
- Through RC
- Through CODE
- Through COND
- Through RETURNCD
Must tape dataset defintion include VOL=SER specification?
- Yes
- No
- only for uncatalogued datasets
- Only for catalogued dataset
What statement can be used to send the data to another MVS JES3 node?
- LINK
- CONNECT
- XMIT
- SEND
which of the following is used to comment out a statement?
- //
- /*
- /+
- +/
Level Numbers that should be coded in 08 - 11 column
- 88
- 77
- 01
- 66
Program Name:
- Can have Letters, 0 - 9, Hyphen and cannot start or end with Hyphen, Maximum of 30 characters
- Can have Letters, 0 - 9 and should start with Letter, Maximum of 30 characters
- Can have Letters, 0 - 9 and should start with Letter, Maximum of 8 characters
- Can have Letters, 0 - 9, Hyphen and cannot start or end with Hyphen, Maximum of 8 characters
Dataname Rule:
- contain at least one character, but not more than 30 character
- contain at least one alphabetic character
- Can begin or end with a hyphen
- Names are not case-sensitive: TotalPay is the same as totalpay, Totalpay or TOTALPAY
- constructed from the Letters, 0 - 9, and hyphen
Any sentence or entry that requires more than one line, must be continued in:
- Area B of the next line
- columns 8 through 11 of the next line
- Area A of the next line
- columns 12 through 72 of the next line
We Can browse or edit the GDG dataset if it is a tape entry.
- True
- False
What are the conditions for concatenating DD Statements?
- Dataset must be of same type (Disk or tape)
- Should not be a partioned dataset
- The dataset with the largest Block SIze must be listed first
- Record lenght of all the dataset should be the same
What are some of the rules involved in overriding parameters on the EXEC statements in a procedure
- A PGM parameter can be overriden
- If a parameter, which does not exist, is coded on the EXEC statement, the parameter will be added
- The parameter for each step need to be coded in the same order as they appear on the procedure EXEC statement
- All parameters for each step must be coded in order.
Select the statements form the below list, which are not true for overriding concatenated DD statements in PROC.
- The overriding DD statement need not be in a same order as the concatenated DD staements.
- To override only last DD statement in a concatenation, code only one overriding statement
- to leave a concatenated staetement unchanged, code its corresponding DD statement with a blank operand field
- Code a DDname against all the overiding DD statements.