how GDGs are concatinated?

Answer Posted / nygrande

If we use the base of the GDG only, all generations will be
concatenated.

If we want to use specific GDG generations, we can code as:

//FILEA DD DSN=NAME.OF.FILE(-5),DISP=SHR
// DD DSN=NAME.OF.FILE(-2),DISP=SHR
// DD DSN=NAME.OF.FILE(-1),DISP=SHR
// DD DSN=NAME.OF.FILE(0),DISP=SHR

or use the GDG complete DSN, as G0000V00. For example:

//FILEA DD DSN=NAME.OF.FILE.G0001V00,DISP=SHR
// DD DSN=NAME.OF.FILE.G0003V00,DISP=SHR
// DD DSN=NAME.OF.FILE.G0004V00,DISP=SHR
// DD DSN=NAME.OF.FILE.G0005V00,DISP=SHR

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does a disposition of (MOD,DELETE,DELETE) mean ?

668


Explain in DD statement what is the use of DCB parameter?

656


How do you access an uncatalogued dataset in a jcl?

729


What is the purpose of dd * statement in jcl?

812


why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.

1950






What is the function of the dd mgmtclas keyword in sms datasets?

738


What dd statement is used to supply the name of a dataset?

779


in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?

820


What are steplib and joblib?

725


Matching Logic in Jcl not in cobol.Could any one please answer this question

3671


What is the significance of addrspc parameter in exec statement?

731


What is the use of symbol // in jcl?

927


How can a fb file convert to vb file using sort program?

807


Suppose I have five jobs to do. But I want to hold one?

660


I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.

1953