sas options orientation=Landscape has to run twice | 電影影評網
![sas options orientation=Landscape has to run twice](https://i.imgur.com/FK6P5g9.jpg)
Orderofoperations.YouroptionsstatementisafteryourODSPDFstatement.Soatthefirstrunit'screatedwiththedefaultvalueorwhateverwasset.
![sas options orientation=Landscape has to run twice](https://i.imgur.com/FK6P5g9.jpg)
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.
ORIENTATION= System Option | 電影影評網
Specifying the Page Orientation for Universal Printing ... | 電影影評網
SAS System Options | 電影影評網
ODS PDF landscape orientation | 電影影評網
sas options orientation=Landscape has to run twice | 電影影評網
24559 | 電影影評網
![](https://i.imgur.com/FK6P5g9.jpg)
紀梵希的時尚王國影評,電影片長、分級相關資訊整理
紀梵希的時尚王國影評如何?幫大家整理「普」相關資訊,包含:電影上映年度、電影分級、語言、出品公司、片長等常見資料:片...
![](https://i.imgur.com/FK6P5g9.jpg)
魅惑紅底鞋影評,電影片長、分級相關資訊整理
魅惑紅底鞋影評如何?幫大家整理「普」相關資訊,包含:電影上映年度、電影分級、語言、出品公司、片長等常見資料:片名:魅...
![](https://i.imgur.com/FK6P5g9.jpg)
《紀梵希的時尚王國 》影評,電影片長、分級相關資訊整理
《紀梵希的時尚王國》影評如何?幫大家整理「普」相關資訊,包含:電影上映年度、電影分級、語言、出品公司、片長等常見資料...
![](https://i.imgur.com/FK6P5g9.jpg)
《魅惑紅底鞋 》影評,電影片長、分級相關資訊整理
《魅惑紅底鞋》影評如何?幫大家整理「普」相關資訊,包含:電影上映年度、電影分級、語言、出品公司、片長等常見資料:片名...