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;
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
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?
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
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.
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!
Or you could try :
options papersize=(8in 11in);
I definitely tried that, still had the same problem!
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.