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

What is the significance of addrspc parameter in the exec statement?

852


what happens in conversion stage in job processing?

964


Where & How Do You Code Identifier In Jcl?

982


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

1049


Must tape dataset definitions include vol=ser specifications?

1378


Explain how can the submitting users racf authority be overridden in a job stream?

887


What are hierarchy levels in jcl?

1270


How is a type of file defined in the jcl that executes the cobol program?

941


What does a disposition of (new,catlg,keep) for a dsn mean?

869


//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*

1149


how do you code a null statement?

1053


What happens if both JOBLIB & STEPLIB is specified ?

853


A dd statement consists of 4 fields. Name them?

1197


what is DD statement is used in JCL?

929


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

947