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


Please Help Members By Posting Answers For Below Questions

How do you access an uncatalogued dataset in a jcl?

731


Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?

2223


How is the record format of an output dataset specified?

747


Can we call instream to catalog and catalog to instream?

685


What are the parameter we cannot use in procedure? How many instream we can write in single jcl?

585






What are the 2 types of parameters in dd statement?

652


Explain about LMQUERY�give a dialog information about a data set

906


What do you understand by the terms: joblib and steplib?

626


how you will the direct the data to spool using sysout option?

1769


what is use of dcb parameter in dd statement?

778


What is the purpose of disp parameter?

647


how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?

791


How to pass data to a program that is coded in an exec statement?

833


a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?

623


What are the parameter we cannot use in procedure?

644