View previous topic :: View next topic
|
Author |
Message |
Anu Narayanan
New User
Joined: 12 Sep 2005 Posts: 20 Location: USA
|
|
|
|
Hi,
I have a GDG with 10 versions. I would like to use only the last 5 versions of the GDG as an input file in my job. is it possible to use them without hard coding like the combination of GDG(0) to GDG(-4) ? I know I can use the GDG base as input if i want to use data in all the versions of the GDG. I want to use only the last 5 versions, because I know the data is present in only the last 5 versions. If I use the base GDG as input the job runs for hours as all the versions of GDG are read.
Thanks for your replies. |
|
Back to top |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
Anu Narayanan,
The way you describe GDG(-4) thru GDG(0) is the accepted way of doing this.
Dave |
|
Back to top |
|
|
rohit jaiswal Warnings : 2 New User
Joined: 09 Mar 2006 Posts: 36 Location: hyderabad,A.P
|
|
|
|
hi Anu
can u please send me the jcl and please eloborate on it as i didnt understand how to use GDG(-4) thru GDG(0). do u mean u want to give the base of the gdg along with the version.
for example xx.xxx.xxx(-4) then
xxx.xxx.xxx(-3) and so on where xxx.xxx.xxx is the base of the gdg
or is ti somehting different from what i have understood
regards
rohit |
|
Back to top |
|
|
Anu Narayanan
New User
Joined: 12 Sep 2005 Posts: 20 Location: USA
|
|
|
|
Hi Rohit,
yes you are right. If the Base GDG is xxxx.yyyy, then I would be using xxxx.yyyy(0)
xxxx.yyyy(-1)
xxxx.yyyy(-2)
xxxx.yyyy(-3)
xxxx.yyyy(-4) in the input files
Hope you are clear.
Thanks,
Anu Narayanan |
|
Back to top |
|
|
meetreks
New User
Joined: 28 Sep 2006 Posts: 26 Location: Edinburgh
|
|
|
|
you can cancatenate the exact version if you know which ones you are going to use. |
|
Back to top |
|
|
TizMe
New User
Joined: 05 Jan 2006 Posts: 72
|
|
|
|
Code: |
//indd DD DISP=SHR,DSN=xxxx.yyyy(-4)
// DD DISP=SHR,DSN=xxxx.yyyy(-3),UNIT=AFF=indd
// DD DISP=SHR,DSN=xxxx.yyyy(-2),UNIT=AFF=indd
// DD DISP=SHR,DSN=xxxx.yyyy(-1),UNIT=AFF=indd
// DD DISP=SHR,DSN=xxxx.yyyy(-0),UNIT=AFF=indd
|
Make sure that you use the UNIT=AFF parms if your input files are tape files. This means that you will only need 1 tape drive, otherwise you will need to allocate 5 drives. UNIT=AFF is not required if the data is on DASD |
|
Back to top |
|
|
|