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
What does a disposition of (MOD,DELETE,DELETE) mean ?
Explain in DD statement what is the use of DCB parameter?
How do you access an uncatalogued dataset in a jcl?
What is the purpose of dd * statement in jcl?
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
What is the function of the dd mgmtclas keyword in sms datasets?
What dd statement is used to supply the name of a dataset?
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?
What are steplib and joblib?
Matching Logic in Jcl not in cobol.Could any one please answer this question
What is the significance of addrspc parameter in exec statement?
What is the use of symbol // in jcl?
How can a fb file convert to vb file using sort program?
Suppose I have five jobs to do. But I want to hold one?
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.