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
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
Mention the types of job control statements?
How to execute 2nd and 4th steps among 5 steps in jcl proc?
how to compare two datasets without using superce because output is limited to 133 bytes
a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?
Name what parameter directs the output of the job log dataset?
What is the function of the dd avgrec keyword in sms datasets?
Matching Logic in Jcl not in cobol.Could any one please answer this question
How does jcl specify the job to the operating system?
Does jcl support automatic restart?
How jcl is used for testing batch programs?
What is the purpose of dd dummy statement?
What is the difference between the positional and keyword parameters? Give examples.
What are the jcl procedures?