<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ods rtf and orientation=landscape sometimes doesn't apply on first print/run in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ods-rtf-and-orientation-landscape-sometimes-doesn-t-apply-on/m-p/698158#M213487</link>
    <description>&lt;P&gt;The options is called before ods rtf. %include programs do not contain code to reset orientation, the first options orientation=landscape is the only place it appears in code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods results on;
ods escapechar="^";
options nodate nonumber orientation=landscape pageno=1 mlogic mprint center missing=" ";
ods listing close;
%include "&amp;amp;SASCODE\REPORT_TEMPLATE.SAS";

ods rtf file="&amp;amp;Output\CTR-Tables_ExportDate_&amp;amp;DataExportDate._PrintedOn_%sysfunc(date(),date9.).rtf" style=custom startpage=no NOTOC_DATA wordstyle='{\s1 Heading 1;}';
ods noproctitle;
ods rtf startpage=now;&lt;/PRE&gt;</description>
    <pubDate>Wed, 11 Nov 2020 14:50:09 GMT</pubDate>
    <dc:creator>LzyButEfficient</dc:creator>
    <dc:date>2020-11-11T14:50:09Z</dc:date>
    <item>
      <title>ods rtf and orientation=landscape sometimes doesn't apply on first print/run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-rtf-and-orientation-landscape-sometimes-doesn-t-apply-on/m-p/698018#M213424</link>
      <description>&lt;P&gt;I've notice this weird behavior in SAS that changing orientation from default portrait to landscape sometimes doesn't apply on first run/print of ods rtf.&amp;nbsp; Running again resolves this problem.&amp;nbsp; I don't know what causes SAS to not apply change to orientation on first run.&lt;BR /&gt;&lt;BR /&gt;Is there a way to guarantee that SAS will always apply orientation=landscape on first print?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 21:37:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-rtf-and-orientation-landscape-sometimes-doesn-t-apply-on/m-p/698018#M213424</guid>
      <dc:creator>LzyButEfficient</dc:creator>
      <dc:date>2020-11-10T21:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: ods rtf and orientation=landscape sometimes doesn't apply on first print/run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-rtf-and-orientation-landscape-sometimes-doesn-t-apply-on/m-p/698043#M213431</link>
      <description>&lt;P&gt;Show your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS RTF determines some of the system setting type things, such as orientation, from the status in effect when the ODS RTF statement executes. So if you are setting the orientation after the ODS RTF statement that is the most likely issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Secondary is if you are calling macros or %include files and don't pay attention to the contents they might be changing system options.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 00:56:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-rtf-and-orientation-landscape-sometimes-doesn-t-apply-on/m-p/698043#M213431</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-11T00:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: ods rtf and orientation=landscape sometimes doesn't apply on first print/run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-rtf-and-orientation-landscape-sometimes-doesn-t-apply-on/m-p/698128#M213475</link>
      <description>You need re-active ODS RTF.&lt;BR /&gt;&lt;BR /&gt;............&lt;BR /&gt;...........&lt;BR /&gt;options orientation=landscape;&lt;BR /&gt;ods select none;&lt;BR /&gt;ods rtf startpage=now ;&lt;BR /&gt; proc print data=sashelp.class;run;&lt;BR /&gt;ods select all;</description>
      <pubDate>Wed, 11 Nov 2020 11:57:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-rtf-and-orientation-landscape-sometimes-doesn-t-apply-on/m-p/698128#M213475</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-11-11T11:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: ods rtf and orientation=landscape sometimes doesn't apply on first print/run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ods-rtf-and-orientation-landscape-sometimes-doesn-t-apply-on/m-p/698158#M213487</link>
      <description>&lt;P&gt;The options is called before ods rtf. %include programs do not contain code to reset orientation, the first options orientation=landscape is the only place it appears in code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods results on;
ods escapechar="^";
options nodate nonumber orientation=landscape pageno=1 mlogic mprint center missing=" ";
ods listing close;
%include "&amp;amp;SASCODE\REPORT_TEMPLATE.SAS";

ods rtf file="&amp;amp;Output\CTR-Tables_ExportDate_&amp;amp;DataExportDate._PrintedOn_%sysfunc(date(),date9.).rtf" style=custom startpage=no NOTOC_DATA wordstyle='{\s1 Heading 1;}';
ods noproctitle;
ods rtf startpage=now;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Nov 2020 14:50:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ods-rtf-and-orientation-landscape-sometimes-doesn-t-apply-on/m-p/698158#M213487</guid>
      <dc:creator>LzyButEfficient</dc:creator>
      <dc:date>2020-11-11T14:50:09Z</dc:date>
    </item>
  </channel>
</rss>

