Mainframe COBOL and JCL Essentials
Test your knowledge of mainframe computing with questions covering COBOL programming concepts and JCL job control operations.
Questions
If you don’t code a MSGLEVEL on the JOB Statement, by default it assumes
- MSGLEVEL=(1,1)
- MSGLEVEL=(1,0)
- MSGLEVEL=(0,1)
- MSGLEVEL will not be used
If you don’t code a MSGLEVEL on the JOB Statement, by default it assumes
- MSGLEVEL=(1,1)
- MSGLEVEL=(1,0)
- MSGLEVEL=(0,1)
- MSGLEVEL will not be used
In a Job, one EXEC Statement is a must for each step
- True
- False
If both a PGM= or a PROC= is not used in a step of a Job then by default it assumes that you are trying to run a
- Instream Procedure
- System Procedure
- Catalogued Procedures
- dummy job
The default Load Library on Mainframes is
- SYS2.LINKLIB
- SYS1.LINKLIB
- SYS7.LINKLIB
- SYS4.LINKLIB
At a time, upto ____ jobs can read from the dataset if DISP=SHR is used
- 121
- 127
- 255
- 516
find the Maximum space allocated from the below statement: SPACE=(TRKS,(10,2))
- 42 Cylinders
- 42 Tracks
- 40 Cylinders
- 40 Tracks
The maximum number of Instream PROCs you can write in a Batch JOB is
- 16
- 15
- 255
- 256
//MYPROC PROC //STEP01 EXEC PGM=IEFBR14,TIME=10 //INFILE DD DSN=XXXXXX.XXXX.XX,DISP=SHR //OUTFILE DD DSN=XXXXXX.XXXX.XX,DISP=SHR How to nullify the TIME from the above proc in a Job?
- //PROCSTEP EXEC PROC=MYPROC,TIME.STEP01=0
- //PROCSTEP EXEC PROC=MYPROC,TIME.STEP01=NULL
- //PROCSTEP EXEC PROC=MYPROC,TIME.STEP01=
- None of the above
Default value for TIME parameter
- 256MB
- 32MB
- 30MB
- set by installation
TIME=MAXIMUM allowa job to run the maximum time which is
- 357912mins
- 357812mins
- 357712mins
- 357612mins
- Which clause can be used instead of checking for FILE STATUS = 10?
- RECORD NOT FOUND
- AT END
- DUPLICATE RECORD
- END OF FILE
- What are the access mode requirements of START statement?
- SEQUENTIAL
- DYNAMIC
- INDEX
- ALL OF THE ABOVE
- Which level is used for condition clause?
- 77
- 1
- 5
- 88
- What level is used for RENAMES clause?
- 66
- 77
- 88
- 90
8.In which section do sort description is given?
- WORKING-STORAGE
- FILE SECTION
- CONTROL SECTION
- LINKAGE SECTION
- Name the divisions which is not in COBOL program.
- IDENTIFICATION
- ENVIRONMENT
- DATA
- WORKING
3.How do you define a table/array in COBOL using INDEX?
- 01 ARRAYS. 05 ARRAY2 PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX
- 01 ARRAY2 PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX
- 01 ARRAYS. 05 ARRAY1 PIC X(9) OCCURS INDEX BY 10 TIMES
- 01 ARRAYS. 88 ARRAY2 PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX
4.Which mode of opening is required when REWRITE is used?
- UPDATE
- OPEN
- I-O
- INPUT
7.What is comp-3 usage ?
- packed decimal
- binary usage
- Hex
- Single precision floating point