02-05-2016 09:40 PM - edited 02-06-2016 04:17 PM
I have a program that runs a macro within a macro. I have a do loop that executes and gives a variable, awvar, to plug into the macro. The macro then is trying to compare two files from consecutive years, and so merges the two years, but relabels one variable set so that they are not overwritten. However, no matter what the variable is after the variable awvar the log reports the error "Expecting a =." and the refuses to execute the rest of the rename statement. Has this ever happened to anyone else? It doesn't make any sense becuase when I enter the variables manually, the code runs fine.
An example of what I am trying to say is attached. This is SAS version 9.3.
Thank you so much!
02-05-2016 10:52 PM
How are you executing these macro's overall? Batch or %include?
Otherwise it's likely you have an error in your code somewhere but I can't see it given what you've provided.
To debug, delete all code and add back proc by proc until you get the error.
02-06-2016 02:04 PM
02-06-2016 04:20 PM - edited 02-06-2016 04:21 PM
I've edited the post to include the two programs. The overall program is the rim.agency.sas, which calls the awf_switchers_service program.The relevant do loop is from lines 421-454, and the error occurs during the execution of the macro awf_switchers_service. Please let me know if there's any other information that would be helpful.