IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Listing the GDG generations in REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
arunkrishnac

New User


Joined: 29 Apr 2008
Posts: 6
Location: mysore

PostPosted: Fri Oct 17, 2008 3:09 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Oct 17, 2008 3:13 pm
Reply with quote

Is this batch or online ?

The best method is different for each environment.
Back to top
View user's profile Send private message
arunkrishnac

New User


Joined: 29 Apr 2008
Posts: 6
Location: mysore

PostPosted: Fri Oct 17, 2008 4:58 pm
Reply with quote

It is a batch environment
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Oct 17, 2008 5:01 pm
Reply with quote

Then you only need a DD statement in the JCl referring to the zero generation.
Back to top
View user's profile Send private message
arunkrishnac

New User


Joined: 29 Apr 2008
Posts: 6
Location: mysore

PostPosted: Fri Oct 17, 2008 5:05 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Oct 17, 2008 5:08 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Oct 17, 2008 7:05 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Oct 17, 2008 9:26 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top