Page 1 of 1

Comparing two files

PostPosted: Thu Feb 09, 2012 2:26 pm
by vamsyk9
Hi,

I have a requirement to compare two files

Example:
A-FIle having 10 records - PS files

B - main file - having 25 records - PS files

I want to compare two files and find the Latest record from A and get updated to B file and if the record not present in File B, It should insert from FILE A

Please check this and let me know the REXX code for the same.

Re: Comparing two files

PostPosted: Thu Feb 09, 2012 3:00 pm
by enrico-sorichetti
where do You have problems ...
the logic or the coding ?
nobody is going to give You the code.

remember we reply on our own time and free of charge
while most people are willing to share experiences and existing code snippets ( it takes little )
the chances that somebody is going to write and post code for specific requests are pretty slim.

did You think about developing a solution using Your <SORT> product ?

Re: Comparing two files

PostPosted: Thu Feb 09, 2012 8:16 pm
by Pedro
Try using the COMPARE command that is available in the ISPF editor.