<?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: Connect to Oracle(user= , password=) code is not working in sql inline view in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-Oracle-user-password-code-is-not-working-in-sql/m-p/285736#M58482</link>
    <description>&lt;P&gt;I think the error is correct, you have unbalanced parentheses.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Count number of open/close parentheses. This is how I find these errors.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jul 2016 04:33:39 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-07-20T04:33:39Z</dc:date>
    <item>
      <title>Connect to Oracle(user= , password=) code is not working in sql inline view</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-Oracle-user-password-code-is-not-working-in-sql/m-p/285733#M58480</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;I have written a mcro using connect to oracle statement as shown below, but its showing error: &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;ERROR: ORACLE prepare error: ORA-00907: missing right parenthesis.&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;FONT color="#ff0000" size="3" face="Courier New"&gt;Is there anytthing wrong in my code, it seems inline view code is not supported in connect to oracle statement.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;/**/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;%MACRO&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;&lt;FONT size="3" face="Courier New"&gt;WHICH(PROCESS,COND,SRC_SYS);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;PROC SQL outobs=&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="3" face="Courier New"&gt;&lt;FONT color="#008080" size="3" face="Courier New"&gt;&lt;FONT color="#008080" size="3" face="Courier New"&gt;10000&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="3" face="Courier New"&gt;&lt;FONT size="3" face="Courier New"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;connect to oracle (user=u1411710 password=work1sbu path=&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" size="3" face="Courier New"&gt;&lt;FONT color="#800080" size="3" face="Courier New"&gt;&lt;FONT color="#800080" size="3" face="Courier New"&gt;'misp'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;&lt;FONT size="3" face="Courier New"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;CREATE TABLE CURRENT.AGG_RISK_COV_&amp;amp;PROCESS AS&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from connection to oracle&lt;/P&gt;&lt;P&gt;(SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008080" size="3" face="Courier New"&gt;&lt;FONT color="#008080" size="3" face="Courier New"&gt;&lt;FONT color="#008080" size="3" face="Courier New"&gt;S.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;&lt;FONT size="3" face="Courier New"&gt;*,T.RISK_STATE_CD,T.COVRG_TYPE_CD FROM&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;(SELECT&lt;/P&gt;&lt;P&gt;INTCOV_SK,&lt;/P&gt;&lt;P&gt;POLICY_SK,&lt;/P&gt;&lt;P&gt;ITEM_ATTRIBUTE_SK,&lt;/P&gt;&lt;P&gt;YEAR_CT,&lt;/P&gt;&lt;P&gt;MONTH_CT,&lt;/P&gt;&lt;P&gt;BROKER_NM,&lt;/P&gt;&lt;P&gt;SUM(EARNED_XPSR_AM) AS EARNED_XPSR_AM,&lt;/P&gt;&lt;P&gt;SUM(WRITTEN_XPSR_AM) AS WRITTEN_XPSR_AM,&lt;/P&gt;&lt;P&gt;SUM(MTD_WRITTEN_PRM_AM)AS MTD_WRITTEN_PRM_AM,&lt;/P&gt;&lt;P&gt;SUM(EARNED_PRM_AM) AS EARNED_PRM_AM&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;POLICY_TYPE_SK,&lt;/P&gt;&lt;P&gt;SOURCE_SYSTEM_SK, ACTUAL_DT,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" size="3" face="Courier New"&gt;&lt;FONT color="#008000" size="3" face="Courier New"&gt;&lt;FONT color="#008000" size="3" face="Courier New"&gt;/* YEAR(DATEPART(ACTUAL_DT)) AS YEAR_CT,*/&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;EXTRACT(YEAR FROM ACTUAL_DT) as YEAR_CT,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" size="3" face="Courier New"&gt;&lt;FONT color="#008000" size="3" face="Courier New"&gt;&lt;FONT color="#008000" size="3" face="Courier New"&gt;/* MONTH(DATEPART(ACTUAL_DT)) AS MONTH_CT,*/&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;EXTRACT(MONTH FROM ACTUAL_DT) as MONTH_CT,&lt;/P&gt;&lt;P&gt;INTCOV_SK,&lt;/P&gt;&lt;P&gt;POLICY_SK,&lt;/P&gt;&lt;P&gt;ITEM_ATTRIBUTE_SK,&lt;/P&gt;&lt;P&gt;BROKER_NM,&lt;/P&gt;&lt;P&gt;EARNED_XPSR_AM,&lt;/P&gt;&lt;P&gt;WRITTEN_XPSR_AM,&lt;/P&gt;&lt;P&gt;MTD_WRITTEN_PRM_AM,&lt;/P&gt;&lt;P&gt;EARNED_PRM_AM&lt;/P&gt;&lt;P&gt;FROM misp.TCOVERAGES_SUMMARY&lt;/P&gt;&lt;P&gt;LEFT JOIN misp.TDATE&lt;/P&gt;&lt;P&gt;ON TCOVERAGES_SUMMARY.MONTH_SK = TDATE.DATE_SK&lt;/P&gt;&lt;P&gt;LEFT JOIN misp.TBROKER_DIMENSION&lt;/P&gt;&lt;P&gt;ON TBROKER_DIMENSION.BROKER_SK = TBROKER_DIMENSION.BROKER_SK&lt;/P&gt;&lt;P&gt;WHERE POLICY_TYPE_SK IN (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="3" face="Courier New"&gt;&lt;FONT color="#008080" size="3" face="Courier New"&gt;&lt;FONT color="#008080" size="3" face="Courier New"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="3" face="Courier New"&gt;&lt;FONT size="3" face="Courier New"&gt;,&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="3" face="Courier New"&gt;&lt;FONT color="#008080" size="3" face="Courier New"&gt;&lt;FONT color="#008080" size="3" face="Courier New"&gt;15&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="3" face="Courier New"&gt;&lt;FONT size="3" face="Courier New"&gt;) AND &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;SOURCE_SYSTEM_SK &amp;amp;COND IN (&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008080" size="3" face="Courier New"&gt;&lt;FONT color="#008080" size="3" face="Courier New"&gt;&lt;FONT color="#008080" size="3" face="Courier New"&gt;SRC_SYS.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;&lt;FONT size="3" face="Courier New"&gt;) AND&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;SNAPSHOT_TYPE_IN =&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#008080" size="3" face="Courier New"&gt;&lt;FONT color="#008080" size="3" face="Courier New"&gt;&lt;FONT color="#008080" size="3" face="Courier New"&gt;0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="3" face="Courier New"&gt;&lt;FONT size="3" face="Courier New"&gt; AND&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;EXTRACT(YEAR FROM ACTUAL_DT) &amp;gt;= &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008080" size="3" face="Courier New"&gt;&lt;FONT color="#008080" size="3" face="Courier New"&gt;&lt;FONT color="#008080" size="3" face="Courier New"&gt;START_YEAR.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;&lt;FONT size="3" face="Courier New"&gt; AND&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;EXTRACT(YEAR FROM ACTUAL_DT) &amp;lt;= &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008080" size="3" face="Courier New"&gt;&lt;FONT color="#008080" size="3" face="Courier New"&gt;&lt;FONT color="#008080" size="3" face="Courier New"&gt;END_YEAR.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;&lt;FONT size="3" face="Courier New"&gt;) AS R&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;GROUP BY&lt;/P&gt;&lt;P&gt;INTCOV_SK,&lt;/P&gt;&lt;P&gt;POLICY_SK,&lt;/P&gt;&lt;P&gt;ITEM_ATTRIBUTE_SK,&lt;/P&gt;&lt;P&gt;BROKER_NM,&lt;/P&gt;&lt;P&gt;YEAR_CT,&lt;/P&gt;&lt;P&gt;MONTH_CT ) AS S&lt;/P&gt;&lt;P&gt;LEFT JOIN&lt;/P&gt;&lt;P&gt;misp.TPOLICY&lt;/P&gt;&lt;P&gt;ON S.POLICY_SK = TPOLICY.POLICY_SK&lt;/P&gt;&lt;P&gt;LEFT JOIN&lt;/P&gt;&lt;P&gt;misp.TCOVRG_TYPE_DMNSN&lt;/P&gt;&lt;P&gt;ON S.INTCOV_SK = TCOVRG_TYPE_DMNSN.COVERAGE_TYPE_SK )AS T;&lt;/P&gt;&lt;P&gt;disconnect from oracle;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;%MEND&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;&lt;FONT size="3" face="Courier New"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;OPTIONS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="3" face="Courier New"&gt;&lt;FONT color="#0000ff" size="3" face="Courier New"&gt;&lt;FONT color="#0000ff" size="3" face="Courier New"&gt;SYMBOLGEN&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="3" face="Courier New"&gt;&lt;FONT color="#0000ff" size="3" face="Courier New"&gt;&lt;FONT color="#0000ff" size="3" face="Courier New"&gt;MLOGIC&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="3" face="Courier New"&gt;&lt;FONT color="#0000ff" size="3" face="Courier New"&gt;&lt;FONT color="#0000ff" size="3" face="Courier New"&gt;MPRINT&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;&lt;FONT size="3" face="Courier New"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;%LET&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;&lt;FONT size="3" face="Courier New"&gt;SRC_SYS_ALL = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="3" face="Courier New"&gt;&lt;FONT color="#0000ff" size="3" face="Courier New"&gt;&lt;FONT color="#0000ff" size="3" face="Courier New"&gt;%STR&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;&lt;FONT size="3" face="Courier New"&gt;(2,3,4,14,15);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;%&lt;STRONG&gt;&lt;I&gt;WHICH&lt;/I&gt;&lt;/STRONG&gt;(PROCESS= PCG_&amp;amp;YYQ,COND=NOT,SRC_SYS=&amp;amp;SRC_SYS_ALL);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 04:17:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-Oracle-user-password-code-is-not-working-in-sql/m-p/285733#M58480</guid>
      <dc:creator>subrat1</dc:creator>
      <dc:date>2016-07-20T04:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to Oracle(user= , password=) code is not working in sql inline view</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-Oracle-user-password-code-is-not-working-in-sql/m-p/285736#M58482</link>
      <description>&lt;P&gt;I think the error is correct, you have unbalanced parentheses.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Count number of open/close parentheses. This is how I find these errors.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 04:33:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-Oracle-user-password-code-is-not-working-in-sql/m-p/285736#M58482</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-20T04:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to Oracle(user= , password=) code is not working in sql inline view</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-to-Oracle-user-password-code-is-not-working-in-sql/m-p/285741#M58483</link>
      <description>&lt;P&gt;There must be some error in your SQL.&lt;/P&gt;
&lt;P&gt;use the following option to check what kind of SQL SAS has passed into ORACLE .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;options sastrace=',,,d' sastraceloc=log;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 04:59:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-to-Oracle-user-password-code-is-not-working-in-sql/m-p/285741#M58483</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-07-20T04:59:12Z</dc:date>
    </item>
  </channel>
</rss>

