Author: Bill Woodger
Subject: Reply to: match 2 files
Posted: Fri Nov 04, 2016 1:13 am (GMT 5.5)
I'm going to take a heavy axe to this topic shortly. Anyone want to complain, don't bother.
Anatol,
I wasn't suggesting that code for you to use, because you want matches. F1,F2,ONLY will only get you mismatches. If you take off the ,ONLY you'll get REFORMAT records for B, but they would need some work because the F2 data would start immediately after the end of the F1 data.
Your best option is RDW,"fixed" data from one file,"variable" data from the other. Then, on any OUTFIL where the fixed data is used for output, you VLTRIM (be careful not to trim a vital value, so know what data can be in the last position).
Subject: Reply to: match 2 files
Posted: Fri Nov 04, 2016 1:13 am (GMT 5.5)
I'm going to take a heavy axe to this topic shortly. Anyone want to complain, don't bother.
Anatol,
I wasn't suggesting that code for you to use, because you want matches. F1,F2,ONLY will only get you mismatches. If you take off the ,ONLY you'll get REFORMAT records for B, but they would need some work because the F2 data would start immediately after the end of the F1 data.
Your best option is RDW,"fixed" data from one file,"variable" data from the other. Then, on any OUTFIL where the fixed data is used for output, you VLTRIM (be careful not to trim a vital value, so know what data can be in the last position).