<?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 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/update/m-p/69335#M15024</link>
    <description>Possibly consider a MERGE or MODIFY.  From the SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  here is a technical document on the MODIFY statement in the DATA step processing.  You must determine what SAS variables represent a sufficiently granular key (BY statement variable list) to perform the master file update.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
TS-250&lt;BR /&gt;
DATA Step Programming Using the MODIFY Statement&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/technote/ts250.html" target="_blank"&gt;http://support.sas.com/techsup/technote/ts250.html&lt;/A&gt;</description>
    <pubDate>Fri, 04 Sep 2009 19:21:29 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-09-04T19:21:29Z</dc:date>
    <item>
      <title>update</title>
      <link>https://communities.sas.com/t5/SAS-Programming/update/m-p/69334#M15023</link>
      <description>When importing data, the some of zip and ndc numbers are imported as '0' instead of their values.This happened after many loads.&lt;BR /&gt;
How do I update/replace the dataset where the zip ad ndc numbers are '0''s with their original values.I have a dataset where I have the actual values.&lt;BR /&gt;
I tried update as follows:&lt;BR /&gt;
data final;&lt;BR /&gt;
 update spdata(where=provider='MEDCO' and file_date='2009-04)) zip_ndc;&lt;BR /&gt;
  by patient_id;&lt;BR /&gt;
  run;&lt;BR /&gt;
&lt;BR /&gt;
zip_ndc has three variables:patient_id zip and ndc.&lt;BR /&gt;
When I use patient_id in the by statement , it fails saying that there are multiple values under the by group.</description>
      <pubDate>Thu, 03 Sep 2009 16:32:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/update/m-p/69334#M15023</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2009-09-03T16:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: update</title>
      <link>https://communities.sas.com/t5/SAS-Programming/update/m-p/69335#M15024</link>
      <description>Possibly consider a MERGE or MODIFY.  From the SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  here is a technical document on the MODIFY statement in the DATA step processing.  You must determine what SAS variables represent a sufficiently granular key (BY statement variable list) to perform the master file update.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
TS-250&lt;BR /&gt;
DATA Step Programming Using the MODIFY Statement&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/technote/ts250.html" target="_blank"&gt;http://support.sas.com/techsup/technote/ts250.html&lt;/A&gt;</description>
      <pubDate>Fri, 04 Sep 2009 19:21:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/update/m-p/69335#M15024</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-09-04T19:21:29Z</dc:date>
    </item>
  </channel>
</rss>

