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
SAS Super FREQ
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
SAS Super FREQ
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.


sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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