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

Hi all-

I have a series of proc reports that I'm outputting to an RTF file. Due to the size of the tables and the number of allowable pages, I need to toggle between portrait and landscape orientations. While the output reflects the change in orientation, it is also shrinking the page size by 1in each time. This makes for some strange and unusable output. Any thoughts?

Below is some sample code so you can try for yourself. Note that the first page is 8.5x11in, and the second page is 7.5x10in. If you run the code a second time, the first page will also shrink on subsequent output.

Thank you!

/********************************************************************************/

ods escapechar '^';
options pagesize=66;

ods rtf file= "new.rtf" startpage= no startpage=no ;

options orientation= portrait;
footnote j=left " This is where my footnote goes";

ods rtf text= "^S={fontsize=13pt font_weight=bold just=c} This is where my title goes";

proc report data=sashelp.class nowd;
where name in ('Alfred' 'Alice' 'Barbar');
column sex age name height weight;
run;

options orientation= landscape;
ods rtf startpage= now;

ods rtf text= "^S={fontsize=13pt font_weight=bold just=c} This is the second page";

proc report data=sashelp.class nowd;
where name in ('Alfred' 'Alice' 'Barbar');
column sex age name height weight;
run;

ods rtf close;

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
SAS Super FREQ

HI:

  I do not observe this behavior in SAS 9.4 either. My suggestion is that you open a track with Tech Support to see whether they can replicate your behavior using your version of SAS and your operating system.

cynthia

View solution in original post

6 REPLIES 6
ballardw
Super User

I'm not seeing this behavior in SAS 9.2.

Are you by any chance using a style other than the SAS supplied RTF style?

Cynthia_sas
SAS Super FREQ

HI:

  I do not observe this behavior in SAS 9.4 either. My suggestion is that you open a track with Tech Support to see whether they can replicate your behavior using your version of SAS and your operating system.

cynthia

ECO918
Obsidian | Level 7

Thanks for the feedback. I'm using 9.3. I went ahead and submitted it to tech support.

Ballardw- the use of SAS supplied RTF style doesn't seem to affect it.

ECO918
Obsidian | Level 7

I  just wanted to follow up on this post in case someone else is having the same problem and searches the threads for help. I reached out to tech support and they said it was a defect in 9.3ts1m, but has been resolved in later releases and 9.4.

Thanks for your help!

Ksharp
Super User

Or you could try :

options papersize=(8in 11in);

ECO918
Obsidian | Level 7

I definitely tried that, still had the same problem!

sas-innovate-2024.png

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.

 

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
  • 6 replies
  • 1985 views
  • 0 likes
  • 4 in conversation