<?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: Update existing and  insert new record to sas dataset. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Update-existing-and-insert-new-record-to-sas-dataset/m-p/217372#M53473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;UPDATE, or MODIFY??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Apr 2015 01:57:11 GMT</pubDate>
    <dc:creator>Howles</dc:creator>
    <dc:date>2015-04-08T01:57:11Z</dc:date>
    <item>
      <title>Update existing and  insert new record to sas dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Update-existing-and-insert-new-record-to-sas-dataset/m-p/217366#M53467</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; my criteria is to update the existing record if it exists in the cumulative dataset else if it is new record then it needs to be added to the cumulative dataset. The cumulative data contains history data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the below but it didnt work. Any other suggestions-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN lang="EN"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;data adhoc.dly_cumulative;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;update adhoc.dly_cumulative&amp;nbsp; adhoc.dly_&amp;amp;day0&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;by column;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 17:13:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Update-existing-and-insert-new-record-to-sas-dataset/m-p/217366#M53467</guid>
      <dc:creator>archana</dc:creator>
      <dc:date>2015-04-07T17:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Update existing and  insert new record to sas dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Update-existing-and-insert-new-record-to-sas-dataset/m-p/217367#M53468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How didn't it work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update is designed exactly that function, update record if it exists or add it in otherwise. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 17:15:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Update-existing-and-insert-new-record-to-sas-dataset/m-p/217367#M53468</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-04-07T17:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Update existing and  insert new record to sas dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Update-existing-and-insert-new-record-to-sas-dataset/m-p/217368#M53469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN lang="EN"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ERROR 411-185: The UPDATE statement requires two data sets, too many data sets have been specified.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;This is the error i am getting when trying to execute the above.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 17:18:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Update-existing-and-insert-new-record-to-sas-dataset/m-p/217368#M53469</guid>
      <dc:creator>archana</dc:creator>
      <dc:date>2015-04-07T17:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Update existing and  insert new record to sas dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Update-existing-and-insert-new-record-to-sas-dataset/m-p/217369#M53470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post your full log then. My *&lt;STRONG&gt;guess*&lt;/STRONG&gt; is that your macro variable is resolving with spaces so the update statement see's 3 datasets?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 17:21:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Update-existing-and-insert-new-record-to-sas-dataset/m-p/217369#M53470</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-04-07T17:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Update existing and  insert new record to sas dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Update-existing-and-insert-new-record-to-sas-dataset/m-p/217370#M53471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like you need to add a semicolon at the end of the UPDATE statement.&amp;nbsp; The software thinks BY and COLUMN are names of additional data sets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 18:05:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Update-existing-and-insert-new-record-to-sas-dataset/m-p/217370#M53471</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-04-07T18:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Update existing and  insert new record to sas dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Update-existing-and-insert-new-record-to-sas-dataset/m-p/217371#M53472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it worked after adding the semicolon. Thank you!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 18:16:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Update-existing-and-insert-new-record-to-sas-dataset/m-p/217371#M53472</guid>
      <dc:creator>archana</dc:creator>
      <dc:date>2015-04-07T18:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Update existing and  insert new record to sas dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Update-existing-and-insert-new-record-to-sas-dataset/m-p/217372#M53473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;UPDATE, or MODIFY??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 01:57:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Update-existing-and-insert-new-record-to-sas-dataset/m-p/217372#M53473</guid>
      <dc:creator>Howles</dc:creator>
      <dc:date>2015-04-08T01:57:11Z</dc:date>
    </item>
  </channel>
</rss>

