Using ODS pdf I want to switch the orientation of my pdf to landscape.
Unfortunately by using the options orientation=LANDSCAPE
function, I have to run my code twice. After the first run the pdf is still in portrait mode.
here is some test code:
ods pdf file="C:/temp/File3.pdf";
options orientation=portrait;
proc print data=sashelp.class;
run;
proc print data=sashelp.retail;
run;
ods pdf close;
After running it I changed the orientation to landscape and run the code again, but the output is still in portrait orientation. If I run it again the option is applied and the pdf is finally in landscape mode. Is there something in this example that I should be doing different to make this work in a single pass?
For context, my reports require enough time to generate that I need to avoid generating them multiple times simply to achieve the landscape orientation.