- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
For some reason this simple call of my proc report to change the orientation to landscape is staying is portrait. Am I missing something?
OPTIONS orientation=landscape nodate;
ods pdf
file="/serverpath/my.pdf"
ods escapechar='~';
/*proc report goes here*/
ods pdf close;
ods pdf(id=VCU_Report_Printing1) close;
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
It was the width of the proc report. Not sure how it got capped.
but this worked.
proc report data=FacultyProfileFall out=finalTable /*wid*/ style(report)={outputwidth=100%};
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Was there anything unexpected in the log?
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
No errors around the pdf area. I think i need to set the margins for the proc report part somehow because this works.
OPTIONS orientation=landscape nodate;
ods pdf file="/serverpath/testOrientation.pdf";
ods escapechar='~';
proc sql;
select count(*), count(*), count(*),count(*), count(*), count(*), count(*), count(*), count(*), count(*),
count(*), count(*), count(*),count(*), count(*), count(*), count(*), count(*), count(*), count(*),
count(*), count(*), count(*), count(*), count(*), count(*), count(*), count(*) from sashelp.shoes
quit;
ods pdf close;
ods pdf(id=VCU_Report_Printing1) close;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I also have an image in the title that spans longer than the proc report.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
It was the width of the proc report. Not sure how it got capped.
but this worked.
proc report data=FacultyProfileFall out=finalTable /*wid*/ style(report)={outputwidth=100%};
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi: You can change the margins for PDF and RTF in the OPTIONS statement. This worked for me:
Even with LANDSCAPE orientation, without any other instructions, the first PROC REPORT uses default widths that it calculates. With a style override to use 100% of the area between the margins, then the output is "stretched" to fit between the margins set in the OPTIONS statement.
Cynthia