View previous topic :: View next topic
|
Author |
Message |
saurabhu
New User
Joined: 20 Sep 2005 Posts: 11 Location: Chennai
|
|
|
|
Hi,
In the GDG
SAMPLE.GDG.OUTPUT.G00V010 100
what does the qualifier V010 100 stands for in G00V010 100.
I think it is version, but what exactly it iss?
what is its importance , where is it used?
Thanks in anticipation
Regards
Saurabh |
|
Back to top |
|
|
Kevin
Active User
Joined: 25 Aug 2005 Posts: 234
|
|
|
|
saurabhu wrote: |
I think it is version, but what exactly it iss?
what is its importance , where is it used? |
SAMPLE.GDG.OUTPUT.G0001V10
G0001 is the actual generation number.
V10 is the version number.
The version number can be used by the programmer to replace an existing GDG while keeping its original position in the generation data group. For example, let's say there are three generations of the GDG:
SAMPLE.GDG.OUTPUT.G0001V00
SAMPLE.GDG.OUTPUT.G0002V00
SAMPLE.GDG.OUTPUT.G0003V00
now, the data in the oldest generation (SAMPLE.GDG.OUTPUT.G0001V00) is determined to be wrong, so the programmer decides to fix the data and replace the original generation. So, he creates a new job to write the output dataset as SAMPLE.GDG.OUTPUT.G0001V01. This new version automatically replaces SAMPLE.GDG.OUTPUT.G0001V00, so now the list looks like this:
SAMPLE.GDG.OUTPUT.G0001V01
SAMPLE.GDG.OUTPUT.G0002V00
SAMPLE.GDG.OUTPUT.G0003V00
To be realistic, it's hard to come up with a really good legitimate business reason to ever want to update the version number. |
|
Back to top |
|
|
saurabhu
New User
Joined: 20 Sep 2005 Posts: 11 Location: Chennai
|
|
|
|
Hi,
Thanks a lot for ur explaination it is really nice of u to share your knowledge on GDG.
This really helped me know about versions and there legitimacy .
But could you help me with some practical jcl listing here u have changed the version for data correction/ recreeation
Thanks
Saurabh |
|
Back to top |
|
|
Kevin
Active User
Joined: 25 Aug 2005 Posts: 234
|
|
|
|
OK. Same scenario:
Code: |
//STEPXXXX EXEC PGM=FIXPGM
//SYSUT1 DD DISP=SHR,DSN=SAMPLE.GDG.OUTPUT.G0001V00
//SYSUT2 DD DSN=SAMPLE.GDG.OUTPUT.G0001V01,DISP=(,CATLG,DELETE),
// UNIT=unit,SPACE=(unt,(pri,sec),RLSE),
// DCB=(MODELDSCB)
//SYSPRINT DD SYSOUT=*
//....
|
|
|
Back to top |
|
|
saurabhu
New User
Joined: 20 Sep 2005 Posts: 11 Location: Chennai
|
|
|
|
Hi,
thanks a lot for explanation with an example. It really was helpful
Thanks
saurabh |
|
Back to top |
|
|
|