IBM Mainframe JCL – Advanced Study Notes
10. Interview Questions
1 What is JCL and its purpose?
2 Difference between JOB, EXEC, and DD statements?
3 What is DISP parameter?
4 Explain GDG and its use cases
5 What is SYSOUT?
6 Difference between PROC and PGM?
7 What happens if DISP is not specified?
11. Practice JCL Programs
Simple program execution:
//JOB1 JOB
//STEP1 EXEC PGM=IEFBR14
//DD1 DD DSN=[Link],DISP=(NEW,CATLG)
SORT example:
//SORTJOB JOB
//STEP1 EXEC PGM=SORT
//SYSIN DD *
SORT FIELDS=(1,5,CH,A)
/*
12. Advanced Topics
GDG (Generation Data Group)
Used to manage multiple versions of datasets automatically.
1 GDG base defines limit
2 New versions created automatically
3 Referenced using (+1), (0), (-1)
VSAM Overview
Virtual Storage Access Method used for high-performance datasets.
1 KSDS – Key Sequenced
2 ESDS – Entry Sequenced
3 RRDS – Relative Record
PROC (Procedures)
Reusable JCL blocks to simplify job coding.
1 In-stream PROC
2 Cataloged PROC
3 Overrides possible during execution