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
A dd statement consists of 4 fields. Name them?
When space is allocated for an output dataset, what units can be used?
Explain the function of //jcllib statement?
What do you know about jcl?
Give the syntax of job specifying jcl statement.
Explain how can an in-stream dataset be terminated?
How gdg are concatenated?
Is it possible to code instream data in a PROC?
what is the purpose of coding notify parameter in job statement?
Explain the function of dd disp parameter?
which utility is used to run a cobol-db2 program?
Is it possible to define dd statements as you want?
what are the various stages of job processing?
Name the statement which can be used to send data to another mvs jes3 node?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?