Hello @izzytetteh24 Well it is like this. 1. When a value is being assigned to macro variable the syntax is %let var_name= the_value; 2, When the macro variable so created is to be used then an ampersand is prefixed. Thus to use the value of var_name, it would be &var_name. Thus in your case assignment would be %let val_date=16MAR2021; and will using it say %put &val_date. ; (I gave this value as an example) You will see something like this in the log ---- 1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 72 73 %let val_date=16MAR2021; 74 %put &val_date.; 16MAR2021 --- As rightly pointed by @PaigeMiller you must assign a value to the macro variable other wise your program will not work. If you get a chance please read this paper. https://support.sas.com/resources/papers/proceedings17/1516-2017.pdf
... View more