<?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: sas select statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sas-select-statement/m-p/775816#M246638</link>
    <description>&lt;P&gt;You are checking for 3 values. What action to do if there is another value - this action should be written as OTHERWISE staement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
set address;
select(street_type);
when ( 'RI' ) street_type = 'RISE';
when ( 'LA' ) street_type = 'LANE';
when ( 'BLV') street_type = 'BVD';
otherwise street_type='****';  /* or any other value */
end;
run;

 &lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 22 Oct 2021 07:19:55 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2021-10-22T07:19:55Z</dc:date>
    <item>
      <title>sas select statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-select-statement/m-p/775813#M246637</link>
      <description>&lt;P&gt;What is the problem with the below code?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;data test;&lt;BR /&gt;set address;&lt;BR /&gt;select(street_type);&lt;BR /&gt;when ( 'RI' ) street_type = 'RISE';&lt;BR /&gt;when ( 'LA' ) street_type = 'LANE';&lt;BR /&gt;when ( 'BLV') street_type = 'BVD';&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;why is it giving the below error ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;ERROR: Unsatisfied WHEN clause and no OTHERWISE clause at line 5 column 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 06:04:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-select-statement/m-p/775813#M246637</guid>
      <dc:creator>sfffdg</dc:creator>
      <dc:date>2021-10-22T06:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: sas select statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-select-statement/m-p/775816#M246638</link>
      <description>&lt;P&gt;You are checking for 3 values. What action to do if there is another value - this action should be written as OTHERWISE staement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
set address;
select(street_type);
when ( 'RI' ) street_type = 'RISE';
when ( 'LA' ) street_type = 'LANE';
when ( 'BLV') street_type = 'BVD';
otherwise street_type='****';  /* or any other value */
end;
run;

 &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Oct 2021 07:19:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-select-statement/m-p/775816#M246638</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2021-10-22T07:19:55Z</dc:date>
    </item>
  </channel>
</rss>

