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

How to find the dupicate members in two PDS files??


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

New User


Joined: 26 Jul 2010
Posts: 4
Location: Banglore

PostPosted: Mon Jan 09, 2012 8:13 pm
Reply with quote

I need to find out the duplicate members in 2 different PDS .. I need to do this by using REXX .. Please help me with the logic.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon Jan 09, 2012 8:24 pm
Reply with quote

Duplicate based on name or contents?
Back to top
View user's profile Send private message
Amar.Roy

New User


Joined: 26 Jul 2010
Posts: 4
Location: Banglore

PostPosted: Mon Jan 09, 2012 8:30 pm
Reply with quote

Duplicate based on member names only.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Mon Jan 09, 2012 9:11 pm
Reply with quote

Create a member list of each PDS using whatever method you normally employ to create member lists. Then combine them, sort them, and select the entries that occur more that once. Your basic, simple duplicate check process.
Back to top
View user's profile Send private message
Amar.Roy

New User


Joined: 26 Jul 2010
Posts: 4
Location: Banglore

PostPosted: Mon Jan 09, 2012 9:41 pm
Reply with quote

Can you please provide me REXX code for that?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Jan 09, 2012 9:45 pm
Reply with quote

Quote:
Can you please provide me REXX code for that?

why should anybody do that...
this is a help forum, not a gimme the code one icon_evil.gif
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: Mon Jan 09, 2012 9:57 pm
Reply with quote

Hello,

Quote:
I need to do this by using REXX ..
Why is this a "need" . . .?

If you know nothing about Rexx, suggest you use something you do know.

You can do what Superk suggested without Rexx. . .
Back to top
View user's profile Send private message
Michael Jakob

New User


Joined: 13 Mar 2011
Posts: 17
Location: Switzerland

PostPosted: Wed Jan 25, 2012 4:03 am
Reply with quote

Use these ISPF functions in this sequence:
LMINIT
LMOPEN
LMMLIST n times
LMCLOSE
LMFREE

The MOD function in the ISPF editor will help you to build this commands.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Jan 25, 2012 2:04 pm
Reply with quote

Michael
Just to be pedantic, that's not REXX icon_wink.gif

Amar.Roy

How to list a PDS using REXX / TSO
Code:
PDS1 = "'YOUR.PDS.NAME'"
X=OUTTRAP(LIST1.)
"LISTDS " PDS1 " MEM "
X=OUTTRAP(OFF)
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 Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
Search our Forums:

Back to Top