1. What is JCL?
JCL (Job Control Language) is used on IBM mainframe systems to instruct the system on how to
run a batch job or start a subsystem.
2. What is a GDG in JCL?
GDG (Generation Data Group) is a group of chronologically or functionally related datasets. Each
dataset is known as a generation.
3. How to create a new GDG generation?
By specifying a relative generation number like (+1) in the JCL DD statement.
4. What is the use of DISP in JCL?
DISP parameter tells the system what to do with the dataset after the step finishes whether to keep,
delete, or catalog it.
5. Scenario: You have to copy only duplicate records to another dataset using DFSORT.
Use the following DFSORT statement:
//SYSIN DD *
SORT FIELDS=(1,10,CH,A)
SUM FIELDS=NONE
OUTFIL FNAMES=DUPLICATE,INCLUDE=(11,1,CH,EQ,C'D')
/*