enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
Code: |
//DDNAME DD DISP=SHR,DSN=gdg_name
Jcl will treat Your dsn specification as if You ad concatenated all
the gdg versions
//DDNAME DD DISP=SHR,DSN=gdg_name(0)
// DD DISP=SHR,DSN=gdg_name(-1)
// DD DISP=SHR,DSN=gdg_name(-2)
// DD DISP=SHR,DSN=gdg_name(...)
// DD DISP=SHR,DSN=gdg_name(...)
// DD DISP=SHR,DSN=gdg_name(-n)
|
so no need to use additional tools to achieve what You want
Code: |
//GENRSTEP EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DISP=SHR,DSN=gdg_base_name
//SYSUT2 DD DISP=(NEW....)
// DSN=all_gdg_data,
// allocation_parameters
|
the jcl above with the obvious adjustment will accumulate all the
versions of a gdg in a single dataset |
|