using text= option in ods pdf statement i got it in last page, but some times is displayed on next page ( i.e, not in the last page).
If you are using PROC REPORT, I would suggest using COMPUTE AFTER logic with a LINE statement, or POSTTEXT like the sample code below shows. If you are not using REPORT, you can use PROC TEMPLATE to get similar results.
Notes/Caveats:
If you have followup questions, please email them to support@sas.com with your LOG and PDF file and we'll be happy to investigate further.
ods escapechar="^";
proc template;
define style mystyle;
parent=styles.printer;
style table from output /
posttext="^{style systemtitle NON REPORT table}"
frame=void rules=groups ;
end;
run;
options nodate nonumber orientation=portrait;
title "title";
footnote "footnote";
ods pdf file="c:\temp\not_report.pdf" notoc style=mystyle;
proc print noobs data=sashelp.cars
/*style(report)={frame=void rules=groups posttext="This is posttext"}*/
style(header)={background=white};
var origin make model;
run;
ods pdf close;
options nodate nonumber orientation=portrait;
title "title";
footnote "footnote";
ods pdf file="c:\temp\report.pdf" notoc;
proc report nowd data=sashelp.cars
style(report)={frame=void rules=groups posttext="^{style systemtitle This is posttext}"}
style(header)={background=white}
style(lines)=systemtitle;
col origin make model;
define origin / group;
compute after ;
line "Text to mimic footnote";
endcomp;
run;
ods pdf close;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.