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. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm


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