0

I have the following code:

option nomprint;
%let firstCurveLength = 50;
%let macroVar=first;
%put &&macroVar.CurveLength;

The last statement printed to the log is:

&firstCurveLength

I don't understand why &firstCurveLength isn't resolved though, since it is a macro variable. I tested this with:

%put &firstCurveLength;

Log:

50

Edit

For anyone landing here from a search engine, Joe gave a great answer to this issue.

halfer
  • 19,824
  • 17
  • 99
  • 186
Max Power
  • 8,265
  • 13
  • 50
  • 91

0 Answers0