<?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: Modify statement only updating 1st OBS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Modify-statement-only-updating-1st-OBS/m-p/443605#M282864</link>
    <description>lol i will give it a go</description>
    <pubDate>Thu, 08 Mar 2018 03:25:49 GMT</pubDate>
    <dc:creator>fpascal</dc:creator>
    <dc:date>2018-03-08T03:25:49Z</dc:date>
    <item>
      <title>Modify statement only updating 1st OBS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-statement-only-updating-1st-OBS/m-p/443591#M282860</link>
      <description>&lt;P&gt;All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to update all observations in dataset with M or F.&amp;nbsp; Prefer to use modify statement but sql works too.&amp;nbsp; Just wan to get the below data step working.&amp;nbsp; It only updates the first obs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data etl.inp_claims_lds2013_2016;&lt;BR /&gt;modify etl.inp_claims_lds2013_2016;&lt;BR /&gt;&amp;nbsp;if gndr_cd = '1' then gndr_cd ='M'; replace;&lt;BR /&gt;&amp;nbsp;if gndr_cd = '2' then gndr_cd = 'F'; replace;&lt;BR /&gt;&amp;nbsp;run;&lt;BR /&gt;&lt;BR /&gt;ERROR: No matching observation was found in MASTER data set.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: There were 1 observations read from the data set ETL.INP_CLAIMS_LDS2013_2016.&lt;BR /&gt;NOTE: The data set ETL.INP_CLAIMS_LDS2013_2016 has been updated. There were 1 observations rewritten, 0 observations&lt;BR /&gt;added and 0 observations deleted.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 02:23:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-statement-only-updating-1st-OBS/m-p/443591#M282860</guid>
      <dc:creator>fpascal</dc:creator>
      <dc:date>2018-03-08T02:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement only updating 1st OBS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-statement-only-updating-1st-OBS/m-p/443602#M282861</link>
      <description>&lt;P&gt;Did you mean to do this?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;if gndr_cd = '1' then do; gndr_cd ='M'; replace; end;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;if gndr_cd = '2' then&amp;nbsp;do; gndr_cd = 'F'; replace; end;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 03:17:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-statement-only-updating-1st-OBS/m-p/443602#M282861</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-03-08T03:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement only updating 1st OBS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-statement-only-updating-1st-OBS/m-p/443603#M282862</link>
      <description>I want to cycle through the entire dataset and up date gndr_cd using modify statement</description>
      <pubDate>Thu, 08 Mar 2018 03:19:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-statement-only-updating-1st-OBS/m-p/443603#M282862</guid>
      <dc:creator>fpascal</dc:creator>
      <dc:date>2018-03-08T03:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement only updating 1st OBS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-statement-only-updating-1st-OBS/m-p/443604#M282863</link>
      <description>&lt;P&gt;Feel free to not look at the code I provided.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 03:24:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-statement-only-updating-1st-OBS/m-p/443604#M282863</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-03-08T03:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement only updating 1st OBS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-statement-only-updating-1st-OBS/m-p/443605#M282864</link>
      <description>lol i will give it a go</description>
      <pubDate>Thu, 08 Mar 2018 03:25:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-statement-only-updating-1st-OBS/m-p/443605#M282864</guid>
      <dc:creator>fpascal</dc:creator>
      <dc:date>2018-03-08T03:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Modify statement only updating 1st OBS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-statement-only-updating-1st-OBS/m-p/443606#M282865</link>
      <description>funny -&lt;BR /&gt;&lt;BR /&gt;put in your code and saw the below&lt;BR /&gt;&lt;BR /&gt;94 data etl.inp_claims_lds2013_2016;&lt;BR /&gt;95&lt;BR /&gt;96 modify etl.inp_claims_lds2013_2016;&lt;BR /&gt;97 if gndr_cd = '1' then do; gndr_cd ='M'; replace; end;&lt;BR /&gt;98 if gndr_cd = '2' then do; gndr_cd = 'F'; replace; end;&lt;BR /&gt;99 run;&lt;BR /&gt;&lt;BR /&gt;NOTE: There were 103834 observations read from the data set ETL.INP_CLAIMS_LDS2013_2016.&lt;BR /&gt;NOTE: The data set ETL.INP_CLAIMS_LDS2013_2016 has been updated. There were 103834 observations rewritten, 0&lt;BR /&gt;observations added and 0 observations deleted.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 1.29 seconds&lt;BR /&gt;cpu time 1.28 seconds&lt;BR /&gt;&lt;BR /&gt;So that is why i wrote cycle through the entire file&lt;BR /&gt;&lt;BR /&gt;But now that I looked at the data it was updated.&lt;BR /&gt;&lt;BR /&gt;it did not record to the log</description>
      <pubDate>Thu, 08 Mar 2018 03:29:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-statement-only-updating-1st-OBS/m-p/443606#M282865</guid>
      <dc:creator>fpascal</dc:creator>
      <dc:date>2018-03-08T03:29:35Z</dc:date>
    </item>
  </channel>
</rss>

