<?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: problem in using select-when in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293705#M1014</link>
    <description>&lt;P&gt;libname l '/folders/myfolders';&lt;BR /&gt;data carselect;&lt;BR /&gt;set l.permanent;&lt;/P&gt;&lt;P&gt;select(Manufacturer);&lt;BR /&gt;LENGTH country $n;&lt;BR /&gt;when("Audi","Acura") country="USA";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;otherwise country="other";&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;55&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;56 libname l '/folders/myfolders';&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Libref L was successfully assigned as follows:&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Engine: V9&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Physical Name: /folders/myfolders&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;57 data carselect;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;58 set l.permanent;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;59&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;60 select(Manufacturer);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;61 LENGTH country $n;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;_&lt;/DIV&gt;&lt;DIV class="sasError"&gt;391&lt;/DIV&gt;&lt;DIV class="sasError"&gt;202&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 391-185: Expecting a variable length specification.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;62 when("Audi","Acura") country="USA";&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;63&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;64&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;65 otherwise country="other";&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;66 end;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;67&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;68 run;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: The data set WORK.CARSELECT may be incomplete. When this step was stopped there were 0 observations and 16 variables.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Data set WORK.CARSELECT was not replaced because this step was stopped.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: DATA statement used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.04 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 0.04 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;69&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;70 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;82&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 24 Aug 2016 13:27:21 GMT</pubDate>
    <dc:creator>rishabhmehra13</dc:creator>
    <dc:date>2016-08-24T13:27:21Z</dc:date>
    <item>
      <title>problem in using select-when</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293692#M1008</link>
      <description>&lt;P&gt;using select when statements,define a new variable providing the country of origin for each model based on the manufacturer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname l '/folders/myfolders';&lt;BR /&gt;data carselect;&lt;BR /&gt;set l.permanent;&lt;/P&gt;&lt;P&gt;select(Manufacturer);&lt;BR /&gt;when(Manufacturer="Audi") country="USA";&lt;/P&gt;&lt;P&gt;otherwise country="other";&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not getting the desired output,for each model the country should come up&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 12:54:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293692#M1008</guid>
      <dc:creator>rishabhmehra13</dc:creator>
      <dc:date>2016-08-24T12:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: problem in using select-when</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293694#M1009</link>
      <description>&lt;P&gt;1) add LENGTH COUNTRY $n - statement,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; otherwise the length will be according to 1st litteral given ("USA" - 3 characters only)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;change the when statement to:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; when ("Audi") country = "USA";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 13:11:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293694#M1009</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-08-24T13:11:55Z</dc:date>
    </item>
    <item>
      <title>problem using select when</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293695#M1012</link>
      <description>&lt;P&gt;using select when statements,define a new variable providing the country of origin for each model based on the manufacturer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname l '/folders/myfolders';&lt;BR /&gt;data carselect;&lt;BR /&gt;set l.permanent;&lt;/P&gt;&lt;P&gt;select(Manufacturer);&lt;BR /&gt;when(Manufacturer="Audi") country="USA";&lt;/P&gt;&lt;P&gt;otherwise country="other";&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not getting the desire output for each manufacturer.I want to display country for each manufacturer based on the manufacturer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 13:13:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293695#M1012</guid>
      <dc:creator>rishabhmehra13</dc:creator>
      <dc:date>2016-08-24T13:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: problem in using select-when</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293698#M1013</link>
      <description>&lt;P&gt;You can use the {i} above your post to post in code retaining the formatting. &amp;nbsp;Code readability is very important:&lt;/P&gt;
&lt;PRE&gt;libname l '/folders/myfolders';

data carselect;&lt;BR /&gt; set sashelp.cars;&lt;BR /&gt; length country $10;&lt;BR /&gt; select(make);&lt;BR /&gt; when("Audi") country="USA";&lt;BR /&gt; otherwise country="other";&lt;BR /&gt; end;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;Audi are german by the way &lt;span class="lia-unicode-emoji" title=":monkey_face:"&gt;🐵&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 13:19:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293698#M1013</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-08-24T13:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: problem in using select-when</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293705#M1014</link>
      <description>&lt;P&gt;libname l '/folders/myfolders';&lt;BR /&gt;data carselect;&lt;BR /&gt;set l.permanent;&lt;/P&gt;&lt;P&gt;select(Manufacturer);&lt;BR /&gt;LENGTH country $n;&lt;BR /&gt;when("Audi","Acura") country="USA";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;otherwise country="other";&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;55&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;56 libname l '/folders/myfolders';&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Libref L was successfully assigned as follows:&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Engine: V9&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Physical Name: /folders/myfolders&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;57 data carselect;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;58 set l.permanent;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;59&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;60 select(Manufacturer);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;61 LENGTH country $n;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;_&lt;/DIV&gt;&lt;DIV class="sasError"&gt;391&lt;/DIV&gt;&lt;DIV class="sasError"&gt;202&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 391-185: Expecting a variable length specification.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;62 when("Audi","Acura") country="USA";&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;63&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;64&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;65 otherwise country="other";&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;66 end;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;67&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;68 run;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: The data set WORK.CARSELECT may be incomplete. When this step was stopped there were 0 observations and 16 variables.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Data set WORK.CARSELECT was not replaced because this step was stopped.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: DATA statement used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.04 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 0.04 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;69&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;70 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;82&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Aug 2016 13:27:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293705#M1014</guid>
      <dc:creator>rishabhmehra13</dc:creator>
      <dc:date>2016-08-24T13:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: problem in using select-when</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293708#M1015</link>
      <description>&lt;P&gt;The length statement goes outside the select-when code block and you need to fill in a value for N, it's not n.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 13:37:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293708#M1015</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-24T13:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: problem in using select-when</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293714#M1016</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data carselect;
set sashelp.cars;
length country $5;
select(Make);
  when("Audi","Acura") country="USA";
  otherwise country="other";
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Aug 2016 13:47:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293714#M1016</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-08-24T13:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: problem in using select-when</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293716#M1017</link>
      <description>&lt;P&gt;and if i want ot include different manufacturers and display the country for them,then how do i do it,&lt;/P&gt;&lt;P&gt;for example for bmw country is germany, how do i do it.Can you give an example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 13:54:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293716#M1017</guid>
      <dc:creator>rishabhmehra13</dc:creator>
      <dc:date>2016-08-24T13:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: problem in using select-when</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293719#M1018</link>
      <description>&lt;P&gt;Add another WHEN line.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The documentation has various examples.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/68024/HTML/default/viewer.htm#p09213s9jc2t99n1vx0omk2rh9ps.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lestmtsref/68024/HTML/default/viewer.htm#p09213s9jc2t99n1vx0omk2rh9ps.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 14:00:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293719#M1018</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-24T14:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: problem in using select-when</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293720#M1019</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/98572"&gt;@rishabhmehra13&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;and if i want ot include different manufacturers and display the country for them,then how do i do it,&lt;/P&gt;
&lt;P&gt;for example for bmw country is germany, how do i do it.Can you give an example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;- increase the length of the target variable so it is sufficient for all counrtry names&lt;/P&gt;
&lt;P&gt;- add aditional when clauses within the select block&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 14:00:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293720#M1019</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-08-24T14:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: problem in using select-when</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293723#M1020</link>
      <description>&lt;P&gt;libname l '/folders/myfolders';&lt;BR /&gt;data carselect;&lt;BR /&gt;set l.permanent;&lt;/P&gt;&lt;P&gt;select(Manufacturer);&lt;BR /&gt;LENGTH country $10;&lt;BR /&gt;when("Audi","Acura") country="USA";&lt;BR /&gt;when("Bmw") country="germany";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;otherwise country="other";&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not getting the output for bmw, it is shwoing country as other only.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 14:02:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293723#M1020</guid>
      <dc:creator>rishabhmehra13</dc:creator>
      <dc:date>2016-08-24T14:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: problem in using select-when</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293725#M1021</link>
      <description>&lt;P&gt;Comparison is case sensitive.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bmw is not the same as BMW.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 14:05:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293725#M1021</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-24T14:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: problem in using select-when</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293733#M1023</link>
      <description>&lt;P&gt;libname l '/folders/myfolders';&lt;BR /&gt;data carselect;&lt;BR /&gt;set l.permanent;&lt;/P&gt;&lt;P&gt;select(Manufacturer);&lt;BR /&gt;LENGTH country $15;&lt;BR /&gt;when("Honda","Lexus","Mitsubis","Infiniti") country="Japan";&lt;BR /&gt;when("Hyundai") country=""SouthKorea";&lt;BR /&gt;when("BMW","Audi","&amp;nbsp;Mercedes") country="germany";&lt;BR /&gt;when("Jaguar") country="India";&lt;/P&gt;&lt;P&gt;when("Acura","Buick","Cadillac","Chevrole","Chrysler","Dodge","Ford","Jeep","Lincoln") country="USA";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;otherwise country="other";&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you check upon this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="sasSource"&gt;57 data carselect;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;58 set l.permanent;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;59&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;60 select(Manufacturer);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;61 LENGTH country $15;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;62 when("Honda","Lexus","Mitsubis","Infiniti") country="Japan";&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;63 when("Hyundai") country=""SouthKorea";&lt;/DIV&gt;&lt;DIV class="sasError"&gt;__&lt;/DIV&gt;&lt;DIV class="sasError"&gt;49&lt;/DIV&gt;&lt;DIV class="sasError"&gt;__________&lt;/DIV&gt;&lt;DIV class="sasError"&gt;388&lt;/DIV&gt;&lt;DIV class="sasError"&gt;76&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;64 when("BMW","Audi","Mercedes") country="germany";&lt;/DIV&gt;&lt;DIV class="sasError"&gt;___ ____________ ________&lt;/DIV&gt;&lt;DIV class="sasError"&gt;49 49 49&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;65 when("Jaguar") country="India";&lt;/DIV&gt;&lt;DIV class="sasError"&gt;____________ ________&lt;/DIV&gt;&lt;DIV class="sasError"&gt;49 49&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release. Inserting white space&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;between a quoted string and the succeeding identifier is recommended.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 388-185: Expecting an arithmetic operator.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;66&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;67 when("Acura","Buick","Cadillac","Chevrole","Chrysler","Dodge","Ford","Jeep","Lincoln") country="USA";&lt;/DIV&gt;&lt;DIV class="sasError"&gt;___ ___ ___ ___ ___ ___ ____________ _____________________&lt;/DIV&gt;&lt;DIV class="sasError"&gt;49 49 49 49 49 49 49 49&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release. Inserting white space&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;between a quoted string and the succeeding identifier is recommended.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;68&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;69&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;70&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;71 otherwise country="other";&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72 end;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 run;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77 ODS HTML CLOSE;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 &amp;amp;GRAPHTERM; ;*';*";*/;RUN;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: The data set WORK.CARSELECT may be incomplete. When this step was stopped there were 0 observations and 16 variables.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Data set WORK.CARSELECT was not replaced because this step was stopped.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: DATA statement used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.06 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 0.06 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 ! QUIT;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;79 QUIT;RUN;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;80 ODS HTML5 (ID=WEB) CLOSE;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;81&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;82 ODS RTF (ID=WEB) CLOSE;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;83 ODS PDF (ID=WEB) CLOSE;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: ODS PDF(WEB) printed no output.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;(This sometimes results from failing to place a RUN statement before the ODS PDF(WEB) CLOSE statement.)&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;84 FILENAME _GSFNAME;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Fileref _GSFNAME has been deassigned.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;85 DATA _NULL_;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;86 RUN;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: DATA statement used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.01 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 0.01 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;87 OPTIONS NOTES STIMER SOURCE SYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;88&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Aug 2016 14:25:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293733#M1023</guid>
      <dc:creator>rishabhmehra13</dc:creator>
      <dc:date>2016-08-24T14:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: problem in using select-when</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293790#M1029</link>
      <description>&lt;P&gt;Length statement goes outside the select block.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 17:55:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293790#M1029</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-24T17:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: problem in using select-when</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293941#M1030</link>
      <description>&lt;P&gt;The enhanced editor of SAS quickly shows the location of the error.&lt;/P&gt;
&lt;P&gt;When program code suddenly appears in the color of string literals, you have an unmatched quote.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname l '/folders/myfolders';
data carselect;
set l.permanent;
length country $15;
select(Manufacturer);
  when("Honda","Lexus","Mitsubis","Infiniti") country="Japan";
  when("Hyundai") country=""SouthKorea";
  when("BMW","Audi"," Mercedes") country="germany";
  when("Jaguar") country="India";
  when ("Acura","Buick","Cadillac","Chevrole","Chrysler","Dodge","Ford","Jeep","Lincoln") country="USA";
  otherwise country="other";
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;vs.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data carselect;
set l.permanent;
length country $15;
select(Manufacturer);
  when("Honda","Lexus","Mitsubis","Infiniti") country="Japan";
  when("Hyundai") country="SouthKorea";
  when("BMW","Audi"," Mercedes") country="germany";
  when("Jaguar") country="India";
  when("Acura","Buick","Cadillac","Chevrole","Chrysler","Dodge","Ford","Jeep","Lincoln") country="USA";
  otherwise country="other";
end;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Two consecutive double quotes before SouthKorea.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 06:10:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293941#M1030</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-08-25T06:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: problem in using select-when</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293942#M1031</link>
      <description>&lt;P&gt;And for better readability, DON'T WRITE THE LENGTH STATEMENT INTO THE SELECT BLOCK.&lt;/P&gt;
&lt;P&gt;There. You were told three times.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 06:12:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-in-using-select-when/m-p/293942#M1031</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-08-25T06:12:00Z</dc:date>
    </item>
  </channel>
</rss>

