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 statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?

1070


which parameter is used to check the syntax of a jcl without executing it?

1055


what is use of disp parameter in dd statement?

852


What are hierarchy levels in jcl?

1257


What is the purpose of the dd keylen parameter?

928


what is the compile process of cobol program expalin with code

2318


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

847


How is the record format of an output dataset specified?

987


Define concatenating?

872


Must tape dataset definitions include vol=ser specifications?

1353


Is condition checking possible in jcl? If yes, how?

1004


Explain the function of //jcllib statement?

938


I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?

2323


How can a stopped job be started again?

915


Name the parameters which can be used to limit the number of records written to a sysout dataset?

888