Hello,
I would like to merge 2 work files together. If there is an account on work file 2 that matches the account from work file 1, I want to grab the Rate data. The resulting work file 3 would have Policy, Account, Status, and Rate. If there was no matching account on work file 2, work file 3 would be written with a blank Rate.
Work file 1 layout (input file)
Policy (n8)
Account (n8)
Status(a1)
Work file 2 layout (input file)
Account(n8)
Rate(a6)
Work file 3 layout (output file)
Policy(n8)
Account(n8)
Status(a1)
Rate(a6)
Can someone help guide me with the syntax I will need to use? I've tried different combinations of SORT and ICETOOL utilizing a mixture of SORT FIELDS, SUM FIELDS, MERGE FIELDS, INREC/OUTREC FIELDS with no luck so far.