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.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.