hello,
I have a file for footnotes, like below:
data fnt;
length fnt_1 $80 fnt_2 $80 fnt_3 $80 fnt_4 $80;
infile datalines dlm=',' ;
input fnt_1 fnt_2 fnt_3 fnt_4 ;
datalines;
"Teach us the most important lessons in life", "Give the best advice and know the right thing to say." ,"Given us two of the best things we could ever have: life and love.", "Loved us unconditionally"
;
run;
I would like to use do loop to write my footnotes. I had my codes as:
data _null_;
set fnt;
do i=1 to 4.;
call execute( cat( "footnote"
, i
, " j = l "
, fnt_i
, " ;"
)
) ;
end ;
run;
However I got errors as below. 1-4 were added to footnote, but I could not get the value of fnt_1 to fnt_4 out.
Could anyone guide me on this? Ideal outcome is I can generate the line as:
footnote1 j=l "Teach us the most important lessons in life";
footnote2 j=l "Give the best advice and know the right thing to say.";
Thanks.
... View more