View previous topic :: View next topic
|
Author |
Message |
Srilaxmi.Challa
New User
Joined: 19 Oct 2006 Posts: 6
|
|
|
|
Hi ,
I would like to list out the commomn memmers in 2 PDS..
Can anybody pls help me out..
Byee |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Common how? By name only, by content, or by both? Do aliases need to be considered as well?
If you wanted to find the common member names, I'd think the easiest process to do is to list all the members of each PDS, then process both lists together, keeping the dupes and tossing the non-dupes. You could also run the two lists through SUPERC and get the results that way. |
|
Back to top |
|
|
Srilaxmi.Challa
New User
Joined: 19 Oct 2006 Posts: 6
|
|
|
|
Common by name only...
I need the Comparision technique using REXX... |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Using REXX you would do as Kevin suggests - the difference is you would write rexx code to compare the lists rather than using already-existing tools (like superc). There is no "rexx comparison technique" - it is just more code that one writes for one's requirement. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
The methods above would work just as well. However, seeing how we're now talking about using REXX, I see where comparing stem variables may be of value:
Code: |
/* REXX */
...
Do outer = 7 To ml1.0
mem1 = Space(ml1.outer,0)
match = 0
Do inner = 7 To ml2.0
mem2 = Space(ml2.inner,0)
If mem1 = mem2 Then
Do
match = 1
Leave inner
End
End
If match Then Say mem1 " = " mem2
End
...
|
This presumes that the stem variable ml1. contains the member list of the first PDS, and ml2. contains the member list of the second PDS. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
SUPERC can produce a list of same-name members in two PDSs. You can invoke SUPERC from within REXX.
O. |
|
Back to top |
|
|
Srilaxmi.Challa
New User
Joined: 19 Oct 2006 Posts: 6
|
|
|
|
Hi Kevin,
Its working...thx a lottt |
|
Back to top |
|
|
|