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 do you code a null statement?

0 Answers   IBM,


How many days does a job remain in spool

7 Answers   Syntel,


which utility is used to run a cobol-db2 program?

0 Answers   IBM,


What it does If we specify TYPRUN=P & it is not substituted by SCAN 0r HOLD in VALUE SET.

0 Answers  


Can we use COND=EVEN on a job card, when jobs are scheduled through scheduler?

1 Answers   L&T,






Please explain with syntax and an example, the Inrec fields and Outrec build in sort.

4 Answers   CTS, TCS,


What do you know about jcl?

0 Answers  


What is the use of the utility DFSRRC00 in the JCL?

2 Answers   Convergys,


If job is submitted with typerun = hold then how can we submit the same job?

3 Answers   Wipro,


How much space OS allocates when you create a PS or PDS?

4 Answers  


TIME parameter in JOB statement or EXEC statement specifies What type of time (CPU time or execution time)?

5 Answers   CTS,


Can we use COND=EVEN on a job card, when jobs are scheduled through scheduler?

5 Answers   L&T,


Categories