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
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
Explain dfsort utility?
How does jcl specify the job to the operating system?
what is use of dsn parameter in dd statement?
What are hierarchy levels in jcl?
What is concatenating?
What is the purpose of the dd keylen parameter?
What is the function of dd name parameter with a 2 part structure; audit.report?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
Explain the function of the dd dcb keyword?
How to pass the parameter in parm using linkage section ? (syntax)?
Explain the jcl exec statement?
How does jcl act on a cobol code?
Explain how can the attributes of one sms dataset be copied to another dataset?
Explain dd statement in jcl?