Compare 2 files and list only the diffrences



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Compare 2 files and list only the diffrences

Postby Sanchari » Sat Sep 05, 2009 12:46 pm

Hi,
I would like to compare 2 files and the compare report generated should be formatted in such a way that it will only show the records which are different.
The user will give the column range to compare as input.
for eg, File A contains the foll:
aaaaaaaaaaaaaa 1245858 000000000000
bbbbbbbbbbbbb bbbbb dessses12458
ccccccccccccc cc55444 sssssssss2458
File B contains the foll:
aaaaaaaaaaaaaa 124t858 00000dd00000
bbbbbbbbbbbbb bbbbb dessses12458
ccccccccccccc cc56444 ssdssssss2458
I'd like to compre from column 19 to 40
My output file say File C will contain the following:
1245858 000000000000
124t858 00000dd00000

cc55444 sssssssss2458
cc56444 ssdssssss2458

note : I cant use icetool
Sanchari
 
Posts: 1
Joined: Sat Sep 05, 2009 12:27 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Compare 2 files and list only the diffrences

 

Re: Compare 2 files and list only the diffrences

Postby Anuj Dhawan » Tue Sep 22, 2009 6:22 pm

Sugget you post the data 'gain with BBcode.
Anuj
Anuj Dhawan
 
Posts: 274
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post