Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Need to compare member of one PDS with the member of another

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Mainframe_Don

New User


Joined: 14 Dec 2007
Posts: 1
Location: Mumbai

PostPosted: Sat Aug 02, 2008 4:57 am    Post subject: Need to compare member of one PDS with the member of another
Reply with quote

I want to develop a below logic , how can I processed for this.

I need to compare member of one PDS with the member of another PDS , and whatever the differences will write to spool.

Normally in 3.13 we can compare only one by one member at a time.

Thanks
Sanjay Dhapate :)
Back to top
View user's profile Send private message

gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Sat Aug 02, 2008 5:47 am    Post subject:
Reply with quote

Hi,

try this
Code:
//COMPARE EXEC PGM=ISRSUPC,                                             
//             PARM=(DELTAL,LINECMP,                                   
//             '',                                                     
//             '')                                                     
//NEWDD    DD DSN=INPUT-DSN1(MEMBER)                                   
//            DISP=SHR                                                 
//OLDDD    DD DSN=INPUT-DSN2(MEMBER)                                   
//OUTDD    DD SYSOUT=*                                                 
//SYSIN    DD *                                                         
CMPCOLM 1:80                                                           
/*                                                                     
//*                                                                     




Gerry
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Sat Aug 02, 2008 12:08 pm    Post subject: Re: Need to compare member of one PDS with the member of ano
Reply with quote

Hi Sanjay..welcome.. recognized me.. icon_smile.gif

Mainframe_Don wrote:
Normally in 3.13 we can compare only one by one member at a time.
You would need to redifine your rules a little more clear-

1. Does both the PDSs contain the same number of members or it's different.

2. If they contain the same number of members then how do you want to compare - first member of first PDS should be compared with all the other members of the other PDS or first member of PDS-1 with first membe of PDS-2 (one by one ).

Unless I misunderstood, you should answer the above, else Gerry's reply is the way to go.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
No new posts COMPARE command sivatechdrive TSO/ISPF 7 Fri Sep 16, 2016 4:31 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us