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
 
Commom members in 2 different PDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
Srilaxmi.Challa

New User


Joined: 19 Oct 2006
Posts: 6

PostPosted: Fri Sep 28, 2007 6:47 pm    Post subject: Commom members in 2 different PDS
Reply with quote

Hi ,

I would like to list out the commomn memmers in 2 PDS..
Can anybody pls help me out..

Byee
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Fri Sep 28, 2007 7:07 pm    Post subject: Reply to: Commom members in 2 different PDS
Reply with quote

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
View user's profile Send private message
Srilaxmi.Challa

New User


Joined: 19 Oct 2006
Posts: 6

PostPosted: Fri Sep 28, 2007 8:57 pm    Post subject:
Reply with quote

Common by name only...

I need the Comparision technique using REXX...
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: Fri Sep 28, 2007 9:07 pm    Post subject:
Reply with quote

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
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Fri Sep 28, 2007 9:30 pm    Post subject: Reply to: Commom members in 2 different PDS
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Sat Sep 29, 2007 12:14 am    Post subject:
Reply with quote

SUPERC can produce a list of same-name members in two PDSs. You can invoke SUPERC from within REXX.

O.
Back to top
View user's profile Send private message
Srilaxmi.Challa

New User


Joined: 19 Oct 2006
Posts: 6

PostPosted: Sat Sep 29, 2007 3:20 pm    Post subject:
Reply with quote

Hi Kevin,

Its working...thx a lottt
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 Historical/statistical details for me... elixir1986 TSO/ISPF 13 Wed Aug 30, 2017 9:02 pm
No new posts Copying Panvalet members to PDS LOGESHWARAN K CA Products 4 Mon Mar 06, 2017 10:45 am
No new posts Single step utility for compare and u... ramprakashn JCL & VSAM 5 Fri Apr 29, 2016 3:43 pm
No new posts Differences between copying members b... E.LAI TSO/ISPF 8 Wed Mar 30, 2016 12:35 pm
No new posts JCL to replace string in all PDS members bhamarekm All Other Mainframe Topics 8 Thu May 28, 2015 8:44 pm

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