MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GDG Base More Than 30 Version

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
Vinodch
Beginner


Joined: 23 Dec 2002
Posts: 80
Topics: 32
Location: Chennai, India

PostPosted: Wed Aug 27, 2008 10:07 am    Post subject: GDG Base More Than 30 Version Reply with quote

Is there any REXX Utility available on hand to list down the GDG base in a system which has more than 30 versions. Please help !
_________________
Thanks,
Vinod.
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Wed Aug 27, 2008 2:19 pm    Post subject: Reply with quote

Define 'version' Do you mean the dataset name ends V01 throught to V30?
or do you mean 30 generations (G001V00 - G0030V00) are kept?

Why rexx? There are catalog utilities around of which the best is probably IDCAMS.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Vinodch
Beginner


Joined: 23 Dec 2002
Posts: 80
Topics: 32
Location: Chennai, India

PostPosted: Wed Aug 27, 2008 3:06 pm    Post subject: Reply with quote

I need the list of GDG name available in a system that has more than 30 versions.
_________________
Thanks,
Vinod.
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Thu Aug 28, 2008 7:45 am    Post subject: Reply with quote

Vinodch wrote:
I need the list of GDG name available in a system that has more than 30 versions.


As it is impossible for a GDG to have more than one version, I feel secure in the assumption that you really mean generations.

Have you considered the usage of IDCAMS LISTCAT to list the existing generations ?
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
Santlou
Beginner


Joined: 18 Apr 2007
Posts: 21
Topics: 4
Location: sw florida

PostPosted: Sun Aug 31, 2008 9:56 am    Post subject: Reply with quote

Vinod,

This REXX will list the GDG Base Name that are defined with over a specific limit of entries. This rexx has two parameters: the Highlevel qualifier, and the limit.

To invoke the rexx to list all the gdg base names that start with "TEST" and are defined with a limit of 30 or more entries, you would enter this command:

GDGLIST TEST 30

Here is the REXX:

/*rexx*/
parse upper arg parms
HL = ""
LM = 9999
Call Get_Parms
Call Find_GDG
Signal Finish
Find_GDG:
x=msg(on)
x=outtrap(gdg.)
"listc lvl("hl") gdg all"
x=outtrap("OFF")
x=msg(off)

gdgrc = rc
if gdgrc /= 0 then do
say = "Error obtaining info on gdg lvl " hl
signal finish
end

do i = 1 to gdg.0

if index(gdg.i,"GDG BASE") > 0 then do
gb = word(gdg.i,4)
end
if index(gdg.i,"LIMIT") > 0 then do
gdg.i = translate(gdg.i," ","-")
tlm = word(gdg.i,2)
if tlm > LM then do
say "BASE="gb " LIMIT="tlm
end
end
end
return
Get_Parms:

parse var parms hl lm rst
return

Finish:
exit
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group