Page 1 of 1

Need help on Comparex utility

PostPosted: Mon Apr 27, 2009 12:29 pm
by Naveen@Uppi
Hi All,

In on of the my requirement,
my input file is getting added with 200 to 30 new feilds for different record type.and my input file will have both input and out fields.
And the out put file will be created seperately for the old fields and new feilds.

So new fields will be moving to the new out put file.

i need to compare if the new fields in the output file are properly updated from the input file. (And the fields position in the input file and the output file differ)

Can i use comparex utility for the same.
One issue which i was facing using the comparex utility was i could not fing the library where the comparex utility will be present.


Do we have any other utilities through which can comapre the new files in the output file with the new fields int he input file
(Since the field position in the input and the out put file differ.)

Thanks and regards,
naveen n

Re: Need help on Comparex utility

PostPosted: Mon Apr 27, 2009 7:28 pm
by dick scherrer
Hello,

As only you know the requirements, it would probably be more productive for you to just write the bit of code necessary to compare the content in the 2 files and output the diffeences.

Re: Need help on Comparex utility

PostPosted: Mon Apr 27, 2009 10:42 pm
by Naveen@Uppi
Hi Dick,

I came to that the comparex utility is not supouted in my mainframes system.

So can you suggest any other utilities to compare the fields in an effective way since the field positions differ in the input and the output file.

just give an example, i will code it further.

Thanks and regadrs,
naveen n

Re: Need help on Comparex utility

PostPosted: Tue Apr 28, 2009 12:22 am
by dick scherrer
Hello,

As i mentioned previously:
it would probably be more productive for you to just write the bit of code necessary to compare the content in the 2 files and output the diffeences

This would require being a programmer for a day (or so) and writing and testing the compare code.

Re: Need help on Comparex utility

PostPosted: Wed Apr 29, 2009 11:20 am
by Anuj Dhawan
Naveen@Uppi wrote:So can you suggest any other utilities to compare the fields in an effective way since the field positions differ in the input and the output file.
If you just need other utility name SORT can be your choice but suggesting that would be very vague . . . at this point. If you show us the input and the expected output from that - one might be havng a better suggestion.