<?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: Using OR_IDENTITY_COLS in SAS 9.4 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-OR-IDENTITY-COLS-in-SAS-9-4/m-p/524379#M142594</link>
    <description>&lt;P&gt;SAS Tech Support provided the answer:&lt;/P&gt;&lt;P&gt;Note: That if you're using&amp;nbsp;another Oracle schema's sequence, you need to add it as follows.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;'{Schema Name Here}.TEST_SEQ.NEXTVAL'&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="cs3fe84ae41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Here is an example:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="cs3fe84ae41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="cse0ee740f1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;DATA&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt; TEST_IMPORT;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csd28c4f3f1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;INPUT&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt; LOC_NM $;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csd28c4f3f1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;DATALINES&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csecd9b3df1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;EIN&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csecd9b3df1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;BVN&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csecd9b3df1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;TST&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;RUN;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;*NWDWLIB is a macro variable with the string of connecting to one of our Oracle DBs;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;LIBNAME &amp;amp;NWDWLIB;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="cse0ee740f1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;PROC&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="cse0ee740f1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;SQL&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csd28c4f3f1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;INSERT&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="csd28c4f3f1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;INTO&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt; NWDWLIB.TEST_LOC&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;(OR_IDENTITY_COLS=(DW_TEST_LOC_ID=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csaf1817d1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'TEST_SEQ.NEXTVAL'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;),DW_TEST_LOC_ID,LOC_NM)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csd28c4f3f1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;SELECT&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="cs6858504d1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;, LOC_NM&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csd28c4f3f1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;FROM&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt; WORK.TEST_IMPORT&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="cse0ee740f1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;QUIT&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&lt;SPAN&gt;LIBNAME NWDWLIB CLEAR;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jan 2019 20:46:37 GMT</pubDate>
    <dc:creator>tborange</dc:creator>
    <dc:date>2019-01-03T20:46:37Z</dc:date>
    <item>
      <title>Using OR_IDENTITY_COLS in SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-OR-IDENTITY-COLS-in-SAS-9-4/m-p/522329#M141783</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;I'm on SAS 9.4 and trying to use OR_IDENTITY_COLS to&amp;nbsp;Use Oracle Sequence when loading a table. The documentation&amp;nbsp;@&amp;nbsp;&lt;A href="https://go.documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=n17merknv57i0un1vhszwcwbzab9.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://go.documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=n17merknv57i0un1vhszwcwbzab9.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt; is vague.&lt;/P&gt;&lt;P&gt;Has anyone used this. If so, can you provide an example&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 20:26:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-OR-IDENTITY-COLS-in-SAS-9-4/m-p/522329#M141783</guid>
      <dc:creator>tborange</dc:creator>
      <dc:date>2018-12-18T20:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using OR_IDENTITY_COLS in SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-OR-IDENTITY-COLS-in-SAS-9-4/m-p/522367#M141795</link>
      <description>&lt;P&gt;One for tech support I reckon. I couldn't find a syntax that worked as intended.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 22:45:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-OR-IDENTITY-COLS-in-SAS-9-4/m-p/522367#M141795</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-12-18T22:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using OR_IDENTITY_COLS in SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-OR-IDENTITY-COLS-in-SAS-9-4/m-p/522371#M141797</link>
      <description>&lt;P&gt;HI Chris,&lt;/P&gt;&lt;P&gt;Thanks for your opinion.&lt;/P&gt;&lt;P&gt;I was able to get it to work syntactically. However, the sequence # didn't flow through to the Oracle table.&lt;/P&gt;&lt;P&gt;I'll contact my company's tech support rep and update this thread accodringly.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;Troy&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 22:52:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-OR-IDENTITY-COLS-in-SAS-9-4/m-p/522371#M141797</guid>
      <dc:creator>tborange</dc:creator>
      <dc:date>2018-12-18T22:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using OR_IDENTITY_COLS in SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-OR-IDENTITY-COLS-in-SAS-9-4/m-p/524379#M142594</link>
      <description>&lt;P&gt;SAS Tech Support provided the answer:&lt;/P&gt;&lt;P&gt;Note: That if you're using&amp;nbsp;another Oracle schema's sequence, you need to add it as follows.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;'{Schema Name Here}.TEST_SEQ.NEXTVAL'&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="cs3fe84ae41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Here is an example:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="cs3fe84ae41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="cse0ee740f1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;DATA&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt; TEST_IMPORT;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csd28c4f3f1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;INPUT&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt; LOC_NM $;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csd28c4f3f1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;DATALINES&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csecd9b3df1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;EIN&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csecd9b3df1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;BVN&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csecd9b3df1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;TST&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;RUN;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;*NWDWLIB is a macro variable with the string of connecting to one of our Oracle DBs;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;LIBNAME &amp;amp;NWDWLIB;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="cse0ee740f1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;PROC&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="cse0ee740f1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;SQL&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csd28c4f3f1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;INSERT&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="csd28c4f3f1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;INTO&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt; NWDWLIB.TEST_LOC&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;(OR_IDENTITY_COLS=(DW_TEST_LOC_ID=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csaf1817d1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'TEST_SEQ.NEXTVAL'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;),DW_TEST_LOC_ID,LOC_NM)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csd28c4f3f1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;SELECT&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="cs6858504d1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;, LOC_NM&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csd28c4f3f1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;FROM&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt; WORK.TEST_IMPORT&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="cse0ee740f1"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;QUIT&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csab6422e41"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&lt;SPAN&gt;LIBNAME NWDWLIB CLEAR;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 20:46:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-OR-IDENTITY-COLS-in-SAS-9-4/m-p/524379#M142594</guid>
      <dc:creator>tborange</dc:creator>
      <dc:date>2019-01-03T20:46:37Z</dc:date>
    </item>
  </channel>
</rss>

