thomas-rasmussen / sas_macros

SAS macros
Creative Commons Zero v1.0 Universal
5 stars 4 forks source link

hash_match: terminates in unexpected error in some cases when called on DST #7

Closed thomas-rasmussen closed 4 years ago

thomas-rasmussen commented 4 years ago

An example has been found where the hash_macro terminates in unexpected errors during the iterations of matching when used on the DST servers. The error seems to be related to the proc append steps in line 816-822. error

thomas-rasmussen commented 4 years ago

Issue should be fixed in the issue-7 branch. Waiting for feedback before merging to master branch.

thomas-rasmussen commented 4 years ago

The solution fixed a bug, but not actually the one that as the problem. The problem seems to be that (in some cases) proc append does not work on DST, if the base dataset does not exist, as it won't be in the first iteration of the macro. Maybe it IS some system option that is (sometimes?) different on the DST SAS server. Another way to fix the problem might be to not use proc append in the first iteration, and instead explictly define the dataset used as a base in the rest of hte iterations.

thomas-rasmussen commented 4 years ago

issue has been fixed