Column comparison of two fixed length files of same layout
Posted: Mon Dec 17, 2012 11:16 pm
Hi all,
I would like to compare all the fields of two fixed width files (field by field comparison) and the output should be having Yes or No for all those fields.
Example:
Input File1
111xyzalpha
222abcbeta
Input File2
111xyzalpha
222cdegama
Output
111111YxyzxyzYalphaalphaY
222222YabccdeNbetagamaN
The input columns might be changed often but the layout of both the files will always be the same and the output also should be changed accordingly. Could you please help me out how to get this scenario without affecting the job.
I would like to compare all the fields of two fixed width files (field by field comparison) and the output should be having Yes or No for all those fields.
Example:
Input File1
111xyzalpha
222abcbeta
Input File2
111xyzalpha
222cdegama
Output
111111YxyzxyzYalphaalphaY
222222YabccdeNbetagamaN
The input columns might be changed often but the layout of both the files will always be the same and the output also should be changed accordingly. Could you please help me out how to get this scenario without affecting the job.