BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
BenConner
Pyrite | Level 9

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

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
Diamond | Level 26
Hi:
I am not sure that what you want is possible. I seem to remember something about PDF that what is in ODS TEXT is one cell and one cell has one justification. You might want to double check with Tech Support to see if I am remembering correctly.

cynthia

View solution in original post

5 REPLIES 5
Cynthia_sas
Diamond | Level 26
Hi:
I am not sure that what you want is possible. I seem to remember something about PDF that what is in ODS TEXT is one cell and one cell has one justification. You might want to double check with Tech Support to see if I am remembering correctly.

cynthia
BenConner
Pyrite | Level 9

Ah.  Ok, that explains it.  Will just use 2 regions.  Thanks!

 

--Ben

Ksharp
Super User
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;


BenConner
Pyrite | Level 9
Hi Xia,

Actually that's exactly what I did. That creates other issues though that can be problematic.

Will just use 2 regions. That way each can have its unique justification.

Thanks!

--Ben
Ksharp
Super User
Sorry. I don't know. I am not familiar with ODS LAYOUT.


hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 2666 views
  • 0 likes
  • 3 in conversation