We need to read file-1 match the 1st 7 characters with that of file-2. If they match then check each letter of the abbr-nam with each character of the full-nam. Say for the 1st record 4 characters match. For the same 1st 7 characters if there are more entries in the file-2 then we need to find out which entry in the file-2 for that combination of zip/state code has maximum number of alphabets matching with the alphabets of the abbr-nam in file-1. Then write into an output file the zip/state combination the abbr-nam and the full-nam with max match in alphabets.
Please let me know how to code such a pgm.
i m sorry for not coding ur program.. bcz i can't check this here. so i may give u the logic..
Just u use the STRING verb and extract the content from the file.. and put it in a temp variable.. do the same in second file also.. then u can just do repeat the step again and again... meanwhile do some comparison with the temporary variables..
i think u got it...