Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Rexx code to extract the Cluster names from Cluster Library

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Rexx code to extract the Cluster names from Cluster Library
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: 8593
Location: Back in jolly old England

PostPosted: Thu May 28, 2009 4:06 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu May 28, 2009 4:21 pm    Post subject:
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    Post subject:
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: 6968
Location: porcelain throne

PostPosted: Thu May 28, 2009 5:30 pm    Post subject:
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

Site Director


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

PostPosted: Thu May 28, 2009 11:12 pm    Post subject:
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    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
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts Spool Extract for Z /os 1.04 version Khadhar Basha CLIST & REXX 3 Thu Sep 28, 2017 3:14 pm
No new posts Speed-up/reduce CPU use of code prino PL/I & Assembler 0 Tue Sep 26, 2017 12:05 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us