Hi,
I have some ODS TEXT statements in an absolute layout that need page #s on the right margin. I can do that with 2 regions, but wondered if it can be done with one. What I tried was:
ods region y=1.5in x=.25in width=10in height=.25in;
ods text = "^{style[fontsize=8pt]All results are preliminary} ^{style[just=r]Page 1 of 4}";
So then I added a width= parm to the 2nd style:
ods text = "^{style[fontsize=8pt]All results are preliminary} ^{style[just=r width=10in]Page 1 of 4}";
The report is in landscape mode, so the lengths work fine in this context. ?
Using current version 9.4 TS1M3 of SAS.
Thanks!
--Ben
Ah. Ok, that explains it. Will just use 2 regions. Thanks!
--Ben
You can pad some blanks in it. ods escapechar='^'; ods text = " All results are preliminary %sysfunc(repeat(^_,40)) Page 1 of 4"; proc print data=sashelp.class;run;
Sorry. I don't know. I am not familiar with ODS LAYOUT.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.