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

Rexx code to extract the Cluster names from Cluster Library


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

New User


Joined: 26 Sep 2007
Posts: 28
Location: Bangalore

PostPosted: Thu May 28, 2009 4:04 pm
Reply with quote

We have a cluster definition library (PDS) (where we have hundreds of VSAM clusters defined) from which I want to extract all the cluster names. Please could some one advice how can I get the list of cluster names.

example of a cluster definition:

Code:

DEF CL -                                 
       (NAME('HLQ1.HLQ2.CLUST1')  -     
        NONINDEXED  -                   
        SPEED     -                     
        VOL(VOLUMEA) -             
        RECSZ(8185,8185) -               
        SHAREOPTIONS(2,3)) -             
    DATA -                               
       (NAME('HLQ1.HLQ2.CLUST1.DATA') -
        CYL(30 10) -                     
        CISZ(8192))                     


The definitions does not follow any naming convention and they are wriiten in different allignments...

Thanks.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu May 28, 2009 4:06 pm
Reply with quote

3.14 would probably be the easiest option.
Back to top
View user's profile Send private message
nareshkp

New User


Joined: 26 Sep 2007
Posts: 28
Location: Bangalore

PostPosted: Thu May 28, 2009 4:14 pm
Reply with quote

How can we use 3.14 as we don't have any specific search string to look for...?
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu May 28, 2009 4:21 pm
Reply with quote

Then how would you use REXX without any specific search string.

Whay not use NAME as a search string, and you can exclude .DATA and .INDEX from the results.
Back to top
View user's profile Send private message
nareshkp

New User


Joined: 26 Sep 2007
Posts: 28
Location: Bangalore

PostPosted: Thu May 28, 2009 5:14 pm
Reply with quote

There are few cluster definitions where NAME is in one line and the cluster name in next line. Also for few DATA and INDEX components the names were in differnt format.

One of my colleague advised me that using rexx code we can put multiple conditions to filter the data so that we can extract all cluster names. But we are new to REXX.. and hence posted my query here seeking some sample codes.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu May 28, 2009 5:30 pm
Reply with quote

1. you can use multiple keys in superc (3.14/3.15) batch mode.
2. you can request 1 to 5 lines before and after hit be included in the output.

new to rexx, new to 3.14---learning curve is quicker with superc.
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: Thu May 28, 2009 11:12 pm
Reply with quote

Hello,

Quote:
One of my colleague advised me that using rexx code we can put multiple conditions to filter the data so that we can extract all cluster names.
It is easy to advise when you don't have to do any work. . . Suggest your colleague provide the sample rexx for you to work from.

To echo what others have mentioned - you will get your answer faster useing superc than learning to write the rexx.
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 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
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
Search our Forums:

Back to Top