Hello, 1. To see i can class variable output, you have to add put statement. 2. As per loop , when i=1 then SAS automatically assign length as per first declaration . To avoid truncation you have to use LENGTH statement . data _null_;
length class $5.;
do i=1 to 2;
if i=1 then
class="bank";
if i=2 then
class="bonds";
put i= class=;
end;
summary=cats(class, "_summary");
call symputx('summary', summary);
Current=cats(class, "_curr");
call symputx('current', current);
run;
%put &summary.;
%put ¤t.;
... View more