<?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: Odd Bug in SAS 9.4 regarding options not being changed in first run in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Odd-Bug-in-SAS-9-4-regarding-options-not-being-changed-in-first/m-p/436675#M282190</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think this is because the options have to be set befor the ods instruction.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2018 12:57:27 GMT</pubDate>
    <dc:creator>gamotte</dc:creator>
    <dc:date>2018-02-13T12:57:27Z</dc:date>
    <item>
      <title>Odd Bug in SAS 9.4 regarding options not being changed in first run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Odd-Bug-in-SAS-9-4-regarding-options-not-being-changed-in-first/m-p/436667#M282189</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have noted over time that there is something peculier in the way options are handled on SAS 9.4.&amp;nbsp; If I take some basic code such as this:&lt;/P&gt;
&lt;PRE&gt;ods rtf file="s:\test.rtf";
options orientation=landscape;
title1 "Hello";
proc print data=sashelp.cars;
run;
ods rtf close;&lt;/PRE&gt;
&lt;P&gt;And run this in a fresh session, the rtf output is portrait, even though the options states landscape.&amp;nbsp; If I run this code exactly the same again, the landscape instruction seems to take effect and the output is then landscape for that output run and all further ones within the session.&amp;nbsp; If however I create a news session and run it, back to portrait for the first run only.&lt;/P&gt;
&lt;P&gt;It seems like first run options are being set, but not used in the current run.&amp;nbsp; Could someone help clarify?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 12:44:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Odd-Bug-in-SAS-9-4-regarding-options-not-being-changed-in-first/m-p/436667#M282189</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-02-13T12:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Odd Bug in SAS 9.4 regarding options not being changed in first run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Odd-Bug-in-SAS-9-4-regarding-options-not-being-changed-in-first/m-p/436675#M282190</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think this is because the options have to be set befor the ods instruction.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 12:57:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Odd-Bug-in-SAS-9-4-regarding-options-not-being-changed-in-first/m-p/436675#M282190</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2018-02-13T12:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Odd Bug in SAS 9.4 regarding options not being changed in first run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Odd-Bug-in-SAS-9-4-regarding-options-not-being-changed-in-first/m-p/436676#M282191</link>
      <description>&lt;P&gt;I think this works if you set the options before you create the RTF file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options orientation=landscape;
title1 "Hello";
ods rtf file="s:\test.rtf";
proc print data=sashelp.cars;
run;
ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Perhaps ODS RTF statement writes or remembers the options at the time that the statement is executed (the file is opened), rather than when the contents are written.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 12:57:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Odd-Bug-in-SAS-9-4-regarding-options-not-being-changed-in-first/m-p/436676#M282191</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-02-13T12:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Odd Bug in SAS 9.4 regarding options not being changed in first run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Odd-Bug-in-SAS-9-4-regarding-options-not-being-changed-in-first/m-p/436680#M282192</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/30622"&gt;@gamotte&lt;/a&gt;, yes quite true, options after the ods do not seem to effect.&amp;nbsp; Strange, sure they always used to.&amp;nbsp; Anyways, will make sure the options are set before the ods in future.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 13:07:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Odd-Bug-in-SAS-9-4-regarding-options-not-being-changed-in-first/m-p/436680#M282192</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-02-13T13:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Odd Bug in SAS 9.4 regarding options not being changed in first run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Odd-Bug-in-SAS-9-4-regarding-options-not-being-changed-in-first/m-p/436743#M282193</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/30622"&gt;@gamotte&lt;/a&gt;, yes quite true, options after the ods do not seem to effect.&amp;nbsp; Strange, sure they always used to.&amp;nbsp; Anyways, will make sure the options are set before the ods in future.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt; I suspect this behavior is related only the options in the ODSPRINT options group. Perhaps the other options you remember working as desired were from a different group. Or is ODSPRINT group new?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 15:18:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Odd-Bug-in-SAS-9-4-regarding-options-not-being-changed-in-first/m-p/436743#M282193</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-02-13T15:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Odd Bug in SAS 9.4 regarding options not being changed in first run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Odd-Bug-in-SAS-9-4-regarding-options-not-being-changed-in-first/m-p/436748#M282194</link>
      <description>&lt;P&gt;Its been a while, but I was sure we used to change orientation in outputs during runs within ods.&amp;nbsp; Although looking back we probably created separate ones and combined in PDF.&amp;nbsp; Anyways, simplest is to always put options at the start of a program, most are setup at system level anyways.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 15:28:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Odd-Bug-in-SAS-9-4-regarding-options-not-being-changed-in-first/m-p/436748#M282194</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-02-13T15:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Odd Bug in SAS 9.4 regarding options not being changed in first run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Odd-Bug-in-SAS-9-4-regarding-options-not-being-changed-in-first/m-p/436781#M282195</link>
      <description>&lt;P&gt;There are certain options that you can change while the ODS destination is open, and others that must be in place before you begin.&amp;nbsp; Page Orientation makes sense (to me) as something that needs to be in place early.&amp;nbsp; But other items, like the ODS STYLE or PAGENO, can be changed on the fly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options orientation=landscape;
title1 "Hello";
ods rtf file="c:\temp\test.rtf" style=rtf;
proc print data=sashelp.cars (obs=20);
run;

options pageno=10;
ods rtf style=analysis ;
proc print data=sashelp.class;
run;

ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Feb 2018 16:39:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Odd-Bug-in-SAS-9-4-regarding-options-not-being-changed-in-first/m-p/436781#M282195</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-02-13T16:39:27Z</dc:date>
    </item>
  </channel>
</rss>

