Also, consider adding some PUTLOG statements in the DATA step to echo back to your SAS log the contributing variable / value combinations. Also, consider seriously the MERGE behavior and how the files defined on the MERGE statement influence the SAS system behavior, when (already mentioned in a subsequent reply) with same-named SAS variable names. You will be best served by doing some desk-checking (adding the PUTLOG statements) and running a sample controlled-test with a limited data subset. Or better yet, use a DATA step to generate some sample data observations with known-values and use that to exercise your SAS program/code. Good luck! Scott Barry SBBWorks, Inc.
... View more