I am preparing a data set which I will later add (stack) to another. I have the following code:
%global lname state;
%let lname=Churchill;
%let state=VA;
data insert;
LastNamePart=&lname;
state=&state;
run;
proc print; run;
Expected Results are two columns and 1 row
LastNamePart State
Churchill VA
I am getting an error that LastNamePart and state are not initialized.
Proc print is outputing 1 row and 4 variables.
LastNamePart Churchill State VA
Why? How to fix?
MM