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
Explain about ISPF/TSO Commands
Is condition checking possible in jcl?
what is DD statement is used in JCL?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
Is it possible to left uncode disp? If yes, how?
How to run cobol program using jcl?
What is the use of disp parameter?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
Explain the purpose of the dd keylen parameter?
how do you access an uncataloged dataset in a jcl?
What is the purpose of disp parameter?
what operation is performed by job statement?
What happens if both JOBLIB & STEPLIB is specified ?
What are the rules employed while naming the steps in a job?
Can we call instream to catalog and catalog to instream?