@PaigeMiller wrote:
You have to understand how macro variables work. When you run the program, &clname is replaced by its value, eaton. That's all it does in this case. And whatever results must be legal valid working SAS code.
So, in your case, the line of code with &clname, when executed, is:
if eaton = bob then put '5xxxx';
Is this what you want? Can you spot a possible problem here? Is this legal valid WORKING code?
Can you explain, in words, what you want this code to do? Because really, if we're going to help here, we need to know what you want this code to do.
If the variable clname resolves to bob I want to print "5xxxx", otherwise I want to print "yyyy"
... View more