<?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 issue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/UPDATE-issue/m-p/733053#M228433</link>
    <description>&lt;P&gt;SQL uses % as the wild card for LIKE in most flavours that I'm familiar with...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
update test_set_1
set acct_number='.'
where acct_number like '2-%';
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/21164"&gt;@greg6363&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm trying to use the update command in a PROC SQL query to change a particular type of value within a stated field.&amp;nbsp; Here is my code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;update test_set_1&lt;BR /&gt;set acct_number='.'&lt;BR /&gt;where acct_number like '2-*';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using a wild card value to capture all the fields that have the value of 2-XXXXXX which is why used the * as a wild card indicator.&amp;nbsp; I want to replace that value with a missing value so I can perform a coalesce statement to reference values from other columns.&amp;nbsp; Unfortunately, when I run the code, I get the following message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt; No rows were updated in work.test_set_1&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it a formatting issue?&amp;nbsp; Wouldn't it have been mentioned in the log file?&amp;nbsp; Any assistance would be greatly appreciated.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Apr 2021 17:51:55 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-04-12T17:51:55Z</dc:date>
    <item>
      <title>UPDATE issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/UPDATE-issue/m-p/733050#M228430</link>
      <description>&lt;P&gt;I'm trying to use the update command in a PROC SQL query to change a particular type of value within a stated field.&amp;nbsp; Here is my code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;update test_set_1&lt;BR /&gt;set acct_number='.'&lt;BR /&gt;where acct_number like '2-*';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using a wild card value to capture all the fields that have the value of 2-XXXXXX which is why used the * as a wild card indicator.&amp;nbsp; I want to replace that value with a missing value so I can perform a coalesce statement to reference values from other columns.&amp;nbsp; Unfortunately, when I run the code, I get the following message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt; No rows were updated in work.test_set_1&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it a formatting issue?&amp;nbsp; Wouldn't it have been mentioned in the log file?&amp;nbsp; Any assistance would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 17:45:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/UPDATE-issue/m-p/733050#M228430</guid>
      <dc:creator>greg6363</dc:creator>
      <dc:date>2021-04-12T17:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: UPDATE issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/UPDATE-issue/m-p/733053#M228433</link>
      <description>&lt;P&gt;SQL uses % as the wild card for LIKE in most flavours that I'm familiar with...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
update test_set_1
set acct_number='.'
where acct_number like '2-%';
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/21164"&gt;@greg6363&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm trying to use the update command in a PROC SQL query to change a particular type of value within a stated field.&amp;nbsp; Here is my code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;update test_set_1&lt;BR /&gt;set acct_number='.'&lt;BR /&gt;where acct_number like '2-*';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using a wild card value to capture all the fields that have the value of 2-XXXXXX which is why used the * as a wild card indicator.&amp;nbsp; I want to replace that value with a missing value so I can perform a coalesce statement to reference values from other columns.&amp;nbsp; Unfortunately, when I run the code, I get the following message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt; No rows were updated in work.test_set_1&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it a formatting issue?&amp;nbsp; Wouldn't it have been mentioned in the log file?&amp;nbsp; Any assistance would be greatly appreciated.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 17:51:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/UPDATE-issue/m-p/733053#M228433</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-04-12T17:51:55Z</dc:date>
    </item>
  </channel>
</rss>

