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?
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.