can u explain gdg with example wht happens if we give limit,empty,noempty,scartch and no scartch
Answer Posted / prabudha jain
The GDG syntax is
//SYSIN DD *
DEFINE GDG(NAME (MYLIB.LIB.TEST) -
LIMIT (10) -
NOEMPTY -
SCRATCH)
/*
LIMIT -This parameter is used to specify the total number
of generations that the GDG may contain.
EMPTY -Specifies tht all existing generations of the GDG
are to be uncataloged whenever the generations of GDG
reached the maximum limit.
NOEMPTY -Specifies that only the oldest generation of the
GDG is to be uncataloged if the limit is reached.
SCRATCH -Specifies that whenever entry of the GDG is
removed from the index, it should be deleted physically and
uncataloged.
NOSCRATCH-Specifies that whenever entry of the GDG is
removed from the index, it should not be physically deleted
and uncataloged.
Note:SCRATCH and NOEMPTY are the default parameters.
Is This Answer Correct ? | 26 Yes | 1 No |
Post New Answer View All Answers
What is the significance of addrspc parameter in the exec statement?
what happens in conversion stage in job processing?
Where & How Do You Code Identifier In Jcl?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
Must tape dataset definitions include vol=ser specifications?
Explain how can the submitting users racf authority be overridden in a job stream?
What are hierarchy levels in jcl?
How is a type of file defined in the jcl that executes the cobol program?
What does a disposition of (new,catlg,keep) for a dsn mean?
//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*
how do you code a null statement?
What happens if both JOBLIB & STEPLIB is specified ?
A dd statement consists of 4 fields. Name them?
what is DD statement is used in JCL?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?