Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Listing the GDG generations in REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Listing the GDG generations in REXX
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: 8593
Location: Back in jolly old England

PostPosted: Fri Oct 17, 2008 3:13 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Oct 17, 2008 5:01 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Oct 17, 2008 5:08 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Fri Oct 17, 2008 7:05 pm    Post subject:
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

Site Director


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

PostPosted: Fri Oct 17, 2008 9:26 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us