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 purpose of dd dummy statement?
I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?
What is the function of job statement in jcl?
What are the parameter we cannot use in procedure?
Mention the types of job control statements?
What do you understand by the term job time – out and how can you overcome that?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
What is jcl in mainframe?
What is concatenating?
In sms datasets, what is the function of the dd mgmtclas keyword?
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
what sort card you will use to copy the data from one dataset to another dataset?
Explain the function of the dd dcb keyword?
Give the syntax of job specifying jcl statement.
how you can direct the data to spool using SYSOUT option?