<?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: How to pass oracle hint? in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-pass-oracle-hint/m-p/123364#M1563</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;I followed these steps, preserve_comments statement is added in the libname statement but it's not applied in sql pass-through statement(connect to) and&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;the hint option&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;is not displayed in SAS generated code.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 May 2012 13:27:34 GMT</pubDate>
    <dc:creator>deh_asma</dc:creator>
    <dc:date>2012-05-22T13:27:34Z</dc:date>
    <item>
      <title>How to pass oracle hint?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-pass-oracle-hint/m-p/123361#M1560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I want to use orale hint in &lt;EM&gt;Pass-through SQL Join &lt;/EM&gt;under SAS DATA INTEGRATION, for that, i add &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;%STR&lt;SPAN class="br0"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;/)%STR(*)+parallel(CONTRAT ,2)%STR(*)&lt;/SPAN&gt;%STR&lt;SPAN class="br0"&gt;(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #808080;"&gt;&lt;STRONG&gt;/)&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt; in ORHINTS option as shown in below screenshot. But &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;this&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;option&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;is not displayed in SAS generated code.&amp;nbsp; In SAS documentation, i found that i shoud add preserve_comments option to force SAS to pass the oracle hint.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Where can i add preserve_comments option under SAS DATA INTEGRATION?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;thank you&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080;"&gt;&lt;IMG alt="hint.jpg" class="jive-image-thumbnail jive-image" height="433" src="https://communities.sas.com/legacyfs/online/2067_hint.jpg" style="float: left;" width="656" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 09:43:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-pass-oracle-hint/m-p/123361#M1560</guid>
      <dc:creator>deh_asma</dc:creator>
      <dc:date>2012-05-22T09:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass oracle hint?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-pass-oracle-hint/m-p/123362#M1561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I don't have SAS 4.3 DI studio to check ,but check this it might be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Columns.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/2068_Columns.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 10:46:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-pass-oracle-hint/m-p/123362#M1561</guid>
      <dc:creator>shivas</dc:creator>
      <dc:date>2012-05-22T10:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass oracle hint?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-pass-oracle-hint/m-p/123363#M1562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to apply the preserve_comments statement in the libname statement. Go into SAS Management Console (looks like you're using SAS 9.2 or SAS 9.3) and select 'Data Library Manager' and then expand your list of libraries. Right-click the library you need to change and select 'Properties. Select 'Options' then 'Advanced Options' then 'Other options. Type 'PRESERVE_COMMENTS' in the field and apply the change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regenerate your DI code. The libname statement will now have the 'PRESERVE_COMMENTS' value so that you can pass the hint.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 12:00:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-pass-oracle-hint/m-p/123363#M1562</guid>
      <dc:creator>djfoot</dc:creator>
      <dc:date>2012-05-22T12:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass oracle hint?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-pass-oracle-hint/m-p/123364#M1563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;I followed these steps, preserve_comments statement is added in the libname statement but it's not applied in sql pass-through statement(connect to) and&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;the hint option&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;is not displayed in SAS generated code.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 13:27:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-pass-oracle-hint/m-p/123364#M1563</guid>
      <dc:creator>deh_asma</dc:creator>
      <dc:date>2012-05-22T13:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass oracle hint?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-pass-oracle-hint/m-p/123365#M1564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding options to the libname in SMC does not make any changes &lt;EM&gt;how&lt;/EM&gt; DIS generates the code. In this case, this option will only open the possibility to use oracle comments in your code (which you need anyway).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue of the comment/hint not showing up in the generated code could possible be a DIS bug (I don't have an oracle to test same, sorry). I suggest that you open a track to tech support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 15:19:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-pass-oracle-hint/m-p/123365#M1564</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2012-05-22T15:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass oracle hint?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-pass-oracle-hint/m-p/123366#M1565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ORHINTS is a data set option (see &lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a001371596.htm" title="http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a001371596.htm"&gt;http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a001371596.htm&lt;/A&gt;) so I *guess* you should see it in the DIS generated code as part of the table name and not in the libname statement. For example, you should see something like DW_F_CONTRATO(orhints='/*+&lt;STRONG style="color: #808080; font-style: inherit; background-color: #ffffff; font-family: inherit; font-weight: inherit;"&gt;parallel(CONTRAT ,2)&lt;/STRONG&gt; */') in your SQL join code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you look there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eyal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 07:27:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-pass-oracle-hint/m-p/123366#M1565</guid>
      <dc:creator>EyalGonen</dc:creator>
      <dc:date>2012-05-25T07:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass oracle hint?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-pass-oracle-hint/m-p/123367#M1566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes exactely, after that i add oracle hint in ORHINTS option in &lt;EM&gt;SQL Join Properties pane, i should see &lt;/EM&gt;&lt;EM&gt;in generated code&amp;nbsp; &lt;/EM&gt;&lt;EM&gt;something like:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; select&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;'/*+&lt;STRONG style="background-color: #ffffff; font-family: inherit; color: #808080;"&gt;parallel(CONTRAT ,2)&lt;/STRONG&gt; */' sum(MONTANT).......&lt;/P&gt;&lt;P&gt;but the oracle hint&amp;nbsp; is not dispayed in generated code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2012 11:24:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-pass-oracle-hint/m-p/123367#M1566</guid>
      <dc:creator>deh_asma</dc:creator>
      <dc:date>2012-05-28T11:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass oracle hint?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-pass-oracle-hint/m-p/123368#M1567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well...I just tested on DIS 4.4 and it does seem to work fine...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the partial SQL code I got (aaaa is the hint I typed - it is just to see if it works or not):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oralocal.CLASSFIT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ORHINTS = aaaa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; test.FACT1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the ORHINTS data set option is found in the "from" statement and not in the "select" statement. Did you look there?&lt;/P&gt;&lt;P&gt;If the problem still persists maybe you should contact SAS Technical Support for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eyal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2012 12:04:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-pass-oracle-hint/m-p/123368#M1567</guid>
      <dc:creator>EyalGonen</dc:creator>
      <dc:date>2012-05-28T12:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass oracle hint?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-pass-oracle-hint/m-p/123369#M1568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you test with sql join pass-through?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2012 12:44:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-pass-oracle-hint/m-p/123369#M1568</guid>
      <dc:creator>deh_asma</dc:creator>
      <dc:date>2012-05-28T12:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass oracle hint?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-pass-oracle-hint/m-p/123370#M1569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops...Sorry. Now I see what you mean...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that invoking SQL pass-through causes Data Integration Studio to ignore the hints you specify in the table properties.&lt;/P&gt;&lt;P&gt;I have no better solution but to NOT use pass through for this query and then the hints seem to be generated OK (using implicit pass through) or as a last resort and if you need full control of the SQL then write the SQL pass through code yourself as a user written code in the DI job.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2012 13:45:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-pass-oracle-hint/m-p/123370#M1569</guid>
      <dc:creator>EyalGonen</dc:creator>
      <dc:date>2012-05-28T13:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass oracle hint?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-pass-oracle-hint/m-p/123371#M1570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used implicit pass through and the oracle hint is displayed in generated code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2012 14:00:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-pass-oracle-hint/m-p/123371#M1570</guid>
      <dc:creator>deh_asma</dc:creator>
      <dc:date>2012-05-28T14:00:06Z</dc:date>
    </item>
  </channel>
</rss>

