View previous topic :: View next topic
|
Author |
Message |
nareshkp
New User
Joined: 26 Sep 2007 Posts: 28 Location: Bangalore
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
3.14 would probably be the easiest option. |
|
Back to top |
|
|
nareshkp
New User
Joined: 26 Sep 2007 Posts: 28 Location: Bangalore
|
|
|
|
How can we use 3.14 as we don't have any specific search string to look for...? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
nareshkp
New User
Joined: 26 Sep 2007 Posts: 28 Location: Bangalore
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|