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
Can we call instream to catalog and catalog to instream?
Differentiate between the joblib and the steplib statements?
Is it possible to left uncode disp? If yes, how?
Are there any set of rules for the names of the steps used in a job?
what is use of dcb parameter in dd statement?
Explain about LMQUERY�give a dialog information about a data set
How can a jobs execution priority be modified?
What is the purpose of the dd keylen parameter?
what is the compile process of cobol program expalin with code
what happens in execution stage in job processing?
what are the types of abends that occur on job failure? And explain the possible causes of these
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
Explain the function of dd name parameter with a 2 part structure; audit.report?
what are JCLLIB and STEPLIB in JCL?