Page 1 of 1

JCL required for comparing files

PostPosted: Thu Dec 04, 2008 5:54 pm
by harish_chnder
I need to compare two files where the difference lies in only one field(say at 1st byte, length 10 bytes)
in each row.
Should i use DFSORT or COMPAREX? Which is better? Can you give me an example?

Re: JCL required for comparing files

PostPosted: Thu Dec 04, 2008 9:49 pm
by Frank Yaeger
Show an example of the records in each input file (relevant fields only) and what you expect for output. Give the RECFM and LRECL of each input file. If either file can have duplicates within it, show that in your example.

Should i use DFSORT or COMPAREX? Which is better?


Better how (performance? ease of use? something else?)? You would have to determine that for yourself based on your criteria for what "better" means to you.