Mainframe JCL and COBOL Fundamentals
Covers Job Control Language (JCL), COBOL programming, dataset management, and mainframe utility syntax for IBM mainframe systems.
Questions
DATASORT allows you to sort data records between header records and trailer records.
- True
- False
Identify the correct syntax.
- SELECT FROM(IN) TO(OUT1) ON(5,4,ZD) FIRSTDUP USING(CTL1)
- SELECT FROMFILE(IN) TOFILE(OUT1) ON(5,4,ZD) FIRSTDUP USING(CTL1)
- SELECT file1(IN) file2(OUT1) ON(5,4,ZD) FIRSTDUP USING(CTL1)
- None of the above
Identify the correct sysntax:
- None of the Below
- SUBSET IN1 TO OUT1
- SUBSET FROM(IN1) OF(OUT1)
- SUBSET FROM(IN1) TO(OUT1)
Which one is not a Non Numeric picture clause?
- A
- B
- V
- X
How many Paragraphs are optional in Identification Division?
- 4
- 5
- 6
- 7
DBCS (Double Byte Character Set) is used in the applications that support large character sets.
- True
- False
Find out the correct statements:
- STOP RUN is the last executable statement of the main program. It returns control back to OS.
- EXIT PROGRAM is the last executable statement of sub-program. It returns control back to main program.
- GOBACK can be coded in main program as well as sub-program as the last statement. It just gives the control back from where it received the control.
- None of the above.
VALUE clause is used to initialize the data items in the working storage section whereas INITIALIZE is used to initialize the data items in the procedure division.
- True
- False
Find Odd man out of JOB Statements:
- CLASS
- TYPRUN
- PRTY
- TYPERUN
How do you designate a comment in JCL
- //
- //*
- /*
- //**
Which takes highest priority when both STEP and JOB lib are present in JCL
- STEP
- JOB
- BOTH
- No priority
How many EXEC statements can be present in a single Job
- 225
- 255
- 128
- 365
COND is a parameter of
- JOB Statement
- EXEC Statement
- NONE
- Both JOB and EXEC statement
Temporary datasets can be created either by not specifying any DSNAME or by specifying the temporary file indicator as in
- DSN=&&TEMP
- DSN = &*TEMP
- DSN = &TEMP
- DSN =TEMP
//MYJOB JOB (1111),'XXXX' //STEP1 EXEC PGM=DO12 //INFILE DD DSN=TEST.PXXXX.V01.TEST.LIB, // UNIT=SYSDA What this UNIT parameter specifies
- Address of INFILE
- Address of JOB
- Address of Program
- NONE
We can use Virtual storage for a Dataset
- True
- False
SPACE parameter is to allocate
- Cylinder
- Block
- Track
- Area
Wats the additional storage is used when primary storage in Cylinder space is not sufficient
- Secondary Storage
- Tracks
- Both
- None
DCB Expansion
- Data Conditional Block
- Device Control Block
- Data Control Block
- Device Conditional Block
End of Procedure can be indicated by
- //PEND
- //
- //END
- //(Procedure name) END