View previous topic :: View next topic
|
Author |
Message |
haidude
New User
Joined: 11 May 2007 Posts: 10 Location: Mumbai
|
|
|
|
How to read GDG versions in reverse order starting from the last generated version.
Suppose, If we want to search for a key value starting from the last generation. how can we do that in JCL?
Do we need to mention all the GDG versions of can we make use of Relative version numbers like -1, 0 , +1?
Please give me the answer and thanks in advance |
|
Back to top |
|
|
ksk
Active User
Joined: 08 Jun 2006 Posts: 355 Location: New York
|
|
|
|
If you know the exact number of versions, you can mention the version numbers like -3,-2,-1,0 etc.
There should be always same number of versions that you are mentioning in your JCL. e.g., If less number of versions exist than you have mentioned, gives error. If more number of versions exist than you have mentioned, ignores unnamed versions.
Hope this helps. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
haidude wrote: |
Suppose, If we want to search for a key value starting from the last generation. how can we do that in JCL? |
Hi,
If you need to search some key, why don't use search option of ISPF. What difference will it make if you start reading from the most recent generation? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
If you only specify the GDG base name for the DD statement it will start reading from the newest to the oldest version. |
|
Back to top |
|
|
|