sasmacrosdeclare

How to call a declared SAS parameter


I have declared a SAS parameter:

%let currentMonth = "June";

How do I print it out / find out what the value of currentMonth is ?


Solution

  • This is a SAS macro variable, not a parameter. There are many ways to diesplay the value of a macro variable, the easiest is with a %PUT statement:

    %put The macro variable CurrentMonth has value: &CurrentMonth ;