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 statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
which parameter is used to check the syntax of a jcl without executing it?
what is use of disp parameter in dd statement?
What are hierarchy levels in jcl?
What is the purpose of the dd keylen parameter?
what is the compile process of cobol program expalin with code
What does a disposition of (new,catlg,keep) for a dsn mean?
How is the record format of an output dataset specified?
Define concatenating?
Must tape dataset definitions include vol=ser specifications?
Is condition checking possible in jcl? If yes, how?
Explain the function of //jcllib statement?
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
How can a stopped job be started again?
Name the parameters which can be used to limit the number of records written to a sysout dataset?