I have the following temp dataset with 2 observations.
The second observation contains a trailing blank.In the data _null_
step I read the value from the second observation with call symput
.
In the put
statement the value is written to the log with 6 blanks: TEXT=Test controltext
.
How can I achieve that TEXT=Test controltext
is printed? In temp dataset are some observation with trailing blank and some with none. So I do not know if there is a trailing blank...
data temp;
a="MyTesttext";
output;
a="Test ";
output;
run;
data _null_;
set temp;
if _n_ = 2 then do;
call symput('text',a);
end;
run;
%put &=text.controltext;