Comparing two files



IBM's Command List programming language & Restructured Extended Executor

Comparing two files

Postby vamsyk9 » Thu Feb 09, 2012 2:26 pm

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.
vamsyk9
 
Posts: 24
Joined: Mon Nov 28, 2011 7:19 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Comparing two files

Postby enrico-sorichetti » Thu Feb 09, 2012 3:00 pm

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 ?
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

Re: Comparing two files

Postby Pedro » Thu Feb 09, 2012 8:16 pm

Try using the COMPARE command that is available in the ISPF editor.
Pedro Vera
User avatar
Pedro
 
Posts: 686
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 53 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post