View previous topic :: View next topic
|
Author |
Message |
arunkrishnac
New User
Joined: 29 Apr 2008 Posts: 6 Location: mysore
|
|
|
|
Hi,
I want to list all the generations allocated for a GDG base. my goal is to get the latest generation allocated. Please suggest me a method to find this in rexx.
Arun |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Is this batch or online ?
The best method is different for each environment. |
|
Back to top |
|
|
arunkrishnac
New User
Joined: 29 Apr 2008 Posts: 6 Location: mysore
|
|
|
|
It is a batch environment |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Then you only need a DD statement in the JCl referring to the zero generation. |
|
Back to top |
|
|
arunkrishnac
New User
Joined: 29 Apr 2008 Posts: 6 Location: mysore
|
|
|
|
But I just know only the GDG base name. No more information about its generations. I heard there is some 'LIST' command (in REXX) that can list the versions allocated if we give the base name. Is there something like that? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
So take a look in the JCL reference manual and look at relative generations.
The GDG base name is all that you do need to know because you can address them relatively, by latest (0), one before latest (-1) ad infinitum. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
arunkrishnac wrote: |
I heard there is some 'LIST' command that can list the versions allocated if we give the base name. Is there something like that? |
See this previous topic. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
my goal is to get the latest generation allocated. |
If your goal is to get/use the latest generaton in your jcl, you do not need/want a list.
Quote: |
But I just know only the GDG base name. |
That is all you need to know - the system automatically resolves the relative generation to the specific (i.e. current, previous, etc). |
|
Back to top |
|
|
|