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

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


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 1702
Location: Australia

PostPosted: Sat Aug 02, 2008 5:47 am
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

Superior Member


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

PostPosted: Sat Aug 02, 2008 12:08 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Compare two files with a key and writ... SYNCSORT 3
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Searching for a member but don't know... TSO/ISPF 6
Search our Forums:

Back to Top