@Kurt_Bremser wrote:
Expand the code to use a dynamic format:
data _null_;
set class_sum;
file '$HOME/out.txt';
array vars _numeric_;
do i = 1 to dim(vars);
name = vname(vars{i});
if name = 'Rowcount'
then format = 'best.';
else format = '18.6';
value = strip(putn(vars{i},format));
put name "= " value;
end;
run;
And for slightly prettier output if this is read by people, try :
put name @25 "= " value;
as an alternative to the above put statement.
... View more