Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


can u explain gdg with example wht happens if we give limit,empty,noempty,scartch and no scartch



can u explain gdg with example wht happens if we give limit,empty,noempty,scartch and no scartch..

Answer / 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

More JCL Interview Questions

why jobstep can't be more than 255 and for GDG has max limit 255 . Is there any relation between the two

1 Answers   IBM, Perot Systems,


oza017.myorg.emp has 100 records ,oza018.myorg.staff has 200 records but 50 are the common records in both files copy all the common records into oza017.myorg.xyz dataset

3 Answers   Cognizant,


can we maintain 2 generations with different Lengths in Same GDG ?

3 Answers   RBS,


Explain about File Tailoring

1 Answers  


Can there be 2 job statements in a JCL? If yes what is the purpose of doing tha?

3 Answers  


how you can access an uncataloged dataset in a JCL?

0 Answers  


How can an in-stream dataset be terminated?

0 Answers  


Explain how can return codes be tested before execution of a job step?

0 Answers  


Can we find specific member without knowing the name of PDS or can we search a member to which PDS it belongs to? if so how?

6 Answers  


What are hierarchy levels in jcl?

0 Answers  


I have a PDS and want to omit few rows of all members of a PDS. How to do it?

6 Answers   Accenture,


List the different jcl statements that are not permitted in the procedures?

0 Answers  


Categories