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

How to overide the symbol parameter in the jcl ?

3 Answers   UST,


What is the difference between IEBGENER, IEBCOPY and REPRO in IDCAMS utility?

8 Answers   Accenture, TCS,


wht do u mean by inrec and outrec ?

1 Answers   IBM,


Explain about CBL/PROCESS statement syntax

1 Answers  


Ques: How can we code COND parameter in a JCL so that only even steps (or only odd steps) get execute??

3 Answers   HSBC,


Explain how can the disposition of sysout datasets be set for an entire jobstream?

0 Answers  


wt will happen to the step of a job if u code COND=ONLY

5 Answers   ADP,


I have a Symbolic Parameter which can have a value say 01 or 02 etc. Now consider i have another Symbolic parameters which is used to get 3 digit code of months (JAN, FEB, etc) but for that i need to check the first symbolic parameter's value and provide its corresponding month's name in the second symbolic parameter. Say IF sym1 = 01 then sym2='Jan' ENDIF etc... In JCL, IF condition is used for RC, ABEND purposes of a step etc. When i use Symbolic parameter in IF clause it is showing Error message. Is there a way to get the above result possible in JCL. If you could provide me with an example, i would understand it better.

0 Answers  


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

0 Answers   IBM,


What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?

0 Answers   IBM,


What is the difference between joblib and jcllib statements

7 Answers   IBM, Maples,


How does jcl act on a cobol code?

0 Answers  


Categories