<?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: SELECT WHEN statement using arrays and variables in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/430097#M4420</link>
    <description>&lt;P&gt;That type of wall paper code is easier to produce using a data step instead of macro coding.&lt;/P&gt;
&lt;P&gt;First let's turn your example into metadata.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data recodes ;
  infile cards truncover ;
  input varname :$32. code $ value $100.;
cards;
app_char_branch 1 Fenitures
app_char_branch 1 Radio-TV
app_char_branch 2 Computers
app_char_branch 3 DiY
app_char_branch 4 Empty
app_char_cars 1 No
app_char_cars 2 Owner
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now let's write a data step that generates the SELECT statements to a text file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename code temp ;
data _null_;
  set recodes ;
  by varname code ;
  file code ;
  if first.varname then put 'select (' varname ');' ;
  if first.code then put '  when (' @;
  else put ',' @ ;
  put value :$quote. @ ;
  if last.code then put ') ' varname '=' code :$quote. ';' ;
  if last.varname then put
     '  otherwise put "PROBLEM OBSERVATION " _n_= ' varname '=;'
   / 'end;' 
  ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So for our sample data that generates these lines of code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;select (app_char_branch );
  when ("Fenitures" ,"Radio-TV" ) app_char_branch ="1" ;
  when ("Computers" ) app_char_branch ="2" ;
  when ("DiY" ) app_char_branch ="3" ;
  when ("Empty" ) app_char_branch ="4" ;
  otherwise put "PROBLEM OBSERVATION " _n_= app_char_branch =;
end;
select (app_char_cars );
  when ("No" ) app_char_cars ="1" ;
  when ("Owner" ) app_char_cars ="2" ;
  otherwise put "PROBLEM OBSERVATION " _n_= app_char_cars =;
end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then you can use %INCLUDE to add those lines of code to a data step.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data vin_grp ;
  set PROJEKT.vin_sample;
%include code / source2 ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jan 2018 18:05:22 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2018-01-23T18:05:22Z</dc:date>
    <item>
      <title>SELECT WHEN statement using arrays and variables</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429785#M4384</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem using "Select when" statement. I have conditions, values and names in three arrays. I want to change my dataset (here are only sample) automaticaly although there are no errors or warnings I still don't get results. Nothing change in main dataset. I have information about "PROBLEM OBSERVATION" in my log but I don't know why. This is my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%let zm='APP_CHAR_BRANCH' 'APP_CHAR_BRANCH' 'APP_CHAR_BRANCH' 'APP_CHAR_CARS' 'APP_CHAR_CARS';&lt;BR /&gt;%let war='Empty' 'Fenitures, Radio-TV, Computers' 'DiY' 'Owner' 'No';&lt;BR /&gt;%let grp='3' '1' '2' '2' '1';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* the "zm" and "war" variables are the exact text from observations from the main datasets ("zm"&amp;nbsp;are variables names and "war" are the values in observations */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data vin_grp(drop=i);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set vin;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;array zmienna (5) $15 zm1-zm5 (&amp;amp;zm.);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;array warunek (5) $100 war1-war5 (&amp;amp;war.);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;array grupa (5) $1 grp1-grp5 (&amp;amp;grp.);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do i = 1 to 5;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; put warunek(i);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/*I added this to see which observations has problems but&amp;nbsp;It wasn't helpfull from me &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;*/&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; put zmienna(i);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; put grupa(i);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; select (zmienna(i));&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; when (warunek(i)) zmienna(i)=grupa(i);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* for example: when ('DiY') app_char_branch='2'; */&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; otherwise put 'PROBLEM OBSERVATION';&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help me somehow?&lt;/P&gt;&lt;P&gt;M.M.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: Main data&amp;nbsp;is in the attachments&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 21:16:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429785#M4384</guid>
      <dc:creator>Margrett</dc:creator>
      <dc:date>2018-01-22T21:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT WHEN statement using arrays and variables</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429787#M4385</link>
      <description>&lt;P&gt;I believe you are using SELECT incorrectly.&amp;nbsp; The code you have is looking for observations that have:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;zmienna(i) =&amp;nbsp;warunek(i)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So these never match, and everything is a PROBLEM OBSERVATION.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What condition are you searching for in the SELECT statement?&amp;nbsp; You don't&amp;nbsp; have to code it ... just describe it.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 21:22:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429787#M4385</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-01-22T21:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT WHEN statement using arrays and variables</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429790#M4386</link>
      <description>&lt;P&gt;I need to change all of the observations in vin dataset from all of the variable starting with "app_". I've done a categorization and want to change these text inside to number (group after cateforization :1,2 or 3).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have table PODZIALY_ZNAKOWE where are variable name (zmienna), condition (war) and group (grp). On that base I want to change my datasets "vin". So for example I don't want to have anymore for variable app_char_branch observations like "Empty" but "2".&amp;nbsp;Instead of "DiY" - "3" etc.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 21:32:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429790#M4386</guid>
      <dc:creator>Margrett</dc:creator>
      <dc:date>2018-01-22T21:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT WHEN statement using arrays and variables</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429792#M4387</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you try a format instead? It seems like it would be more intuitive and easier to follow. And it works better if you need to repeat this multiple times.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the first example here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/sugi30/001-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/001-30.pdf&lt;/A&gt;&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;</description>
      <pubDate>Mon, 22 Jan 2018 21:35:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429792#M4387</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-22T21:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT WHEN statement using arrays and variables</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429793#M4388</link>
      <description>&lt;P&gt;If the "zm" are actually variable names, this would be the way to match them:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let &amp;nbsp;zm=APP_CHAR_BRANCH APP_CHAR_BRANCH APP_CHAR_BRANCH APP_CHAR_CARS APP_CHAR_CARS;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then later:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;array zmienna (5) &amp;amp;zm;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's unusual to include the same variable multiple times within an array, but it should work in this case.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 21:35:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429793#M4388</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-01-22T21:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT WHEN statement using arrays and variables</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429800#M4389</link>
      <description>&lt;P&gt;But I have to work&amp;nbsp;with that data later on using proc corr and do some analysis. So I guess format wan't be a good solution. And I have 200 more numeric variables to do the same with... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 21:50:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429800#M4389</guid>
      <dc:creator>Margrett</dc:creator>
      <dc:date>2018-01-22T21:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT WHEN statement using arrays and variables</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429801#M4390</link>
      <description>&lt;P&gt;Instead of "&lt;SPAN&gt;array zmienna (5) $15 zm1-zm5 (&amp;amp;zm.);" ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Nope it doesn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PS: When I write a line like this:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;when ('DiY') app_char_branch='2';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;without using variables I&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;got the results I needed, but of course I don't want to write these all conditions by myself...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 21:55:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429801#M4390</guid>
      <dc:creator>Margrett</dc:creator>
      <dc:date>2018-01-22T21:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT WHEN statement using arrays and variables</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429802#M4391</link>
      <description>&lt;P&gt;Yes, that's the right thing to do.&amp;nbsp; You might have to post the log so we can see the part that isn't working.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 21:56:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429802#M4391</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-01-22T21:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT WHEN statement using arrays and variables</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429806#M4392</link>
      <description>&lt;DIV class="dijitContentPane dijitBorderContainer-child dijitBorderContainer-dijitContentPane dijitBorderContainerPane dijitAlignCenter dijitContentPaneSingleChild"&gt;&lt;DIV class="dijitBorderContainer dijitContainer row-fluid dijitLayoutContainer"&gt;&lt;DIV class="dijitContentPane dijitBorderContainer-child dijitBorderContainer-dijitContentPane dijitBorderContainerPane dijitAlignCenter dijitContentPaneSingleChild"&gt;&lt;DIV class="dijitBorderContainer dijitContainer dijitLayoutContainer sasStudioTabsParentContainer dojoDndSource dojoDndTarget dojoDndContainerOver"&gt;&lt;DIV class="dijitTabContainer dijitTabContainerTop dijitContainer dijitLayoutContainer tabStrip-disabled sasStudioTabsTabContainer sasStudioTabsTabContainerVertical sasStudioTabsTop dijitBorderContainer-child dijitBorderContainer-dijitTabContainerTop dijitBorderContainerPane dijitAlignCenter"&gt;&lt;DIV class="dijitTabPaneWrapper dijitTabContainerTop-container dijitAlignCenter"&gt;&lt;DIV class="dijitTabContainerTopChildWrapper dijitVisible"&gt;&lt;DIV class="dijitBorderContainer dijitContainer sasStudioTabsTabContainerChild dijitTabPane dijitTabContainerTop-child dijitTabContainerTop-dijitBorderContainer dijitLayoutContainer"&gt;&lt;DIV class="dijitBorderContainer dijitContainer dijitBorderContainer-child dijitBorderContainer-dijitBorderContainer dijitBorderContainerPane dijitAlignCenter dijitLayoutContainer"&gt;&lt;DIV class="dijitContentPane dijitBorderContainer-child dijitBorderContainer-dijitContentPane dijitBorderContainerPane dijitAlignCenter dijitContentPaneSingleChild"&gt;&lt;DIV class="dijitBorderContainer dijitContainer dijitLayoutContainer"&gt;&lt;DIV class="dijitContentPane dijitBorderContainer-child dijitBorderContainer-dijitContentPane dijitBorderContainerPane dijitAlignCenter dijitContentPaneSingleChild"&gt;&lt;DIV class="dijitBorderContainer dijitContainer dijitLayoutContainer dojoDndSource dojoDndTarget dojoDndContainerOver"&gt;&lt;DIV class="dijitTabContainer dijitTabContainerTop dijitContainer dijitLayoutContainer tabStrip-disabled taskTabContainer dijitBorderContainer-child dijitBorderContainer-dijitTabContainerTop dijitBorderContainerPane dijitAlignCenter"&gt;&lt;DIV class="dijitTabPaneWrapper dijitTabContainerTop-container dijitAlignCenter"&gt;&lt;DIV class="dijitTabContainerTopChildWrapper dijitVisible"&gt;&lt;DIV class="dijitBorderContainer dijitContainer dijitTabPane dijitTabContainerTop-child dijitTabContainerTop-dijitBorderContainer dijitLayoutContainer"&gt;&lt;DIV class="dijitBorderContainer dijitContainer dijitBorderContainer-child dijitBorderContainer-dijitBorderContainer dijitBorderContainerPane dijitAlignCenter dijitLayoutContainer"&gt;&lt;DIV class="dijitContentPane dijitBorderContainer-child dijitBorderContainer-dijitContentPane dijitBorderContainerPane dijitAlignCenter"&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;61&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;62 PROC surveyselect data=PROJEKT.vin&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;63 out=vin_sample&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;64 method=srs sampsize=3000;/* simple random sample - srs */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;65 run;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The data set WORK.VIN_SAMPLE has 3000 observations and 9 variables.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROCEDURE SURVEYSELECT used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.48 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 0.31 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;66&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;67 %let zm='APP_CHAR_BRANCH' 'APP_CHAR_BRANCH' 'APP_CHAR_BRANCH' 'APP_CHAR_CARS' 'APP_CHAR_CARS';&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;68&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;69 /* %let war="when ('Empty')" "when ('Fenitures','Radio-TV','Computers')" "when ('DiY')" "when ('Owner')" "when ('No')";&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;69 ! */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;70 %let war='Empty' 'Fenitures, Radio-TV, Computers' 'DiY' 'Owner' 'No';&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;71 /* */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72 /* %put &amp;amp;war.; */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73 %let grp='3' '1' '2' '2' '1';&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 /* %let grp=3 1 2 2 1; */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75 /* %put &amp;amp;grp.; */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77 data vin_grp(drop=i);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 set vin_sample;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;79 array zmienna (5) &amp;amp;zm.;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;_&lt;/DIV&gt;&lt;DIV class="sasError"&gt;79&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 79-322: Expecting a ).&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Line generated by the macro variable "ZM".&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;79 'APP_CHAR_BRANCH' 'APP_CHAR_BRANCH' 'APP_CHAR_BRANCH' 'APP_CHAR_CARS' 'APP_CHAR_CARS'&lt;/DIV&gt;&lt;DIV class="sasError"&gt;_________________&lt;/DIV&gt;&lt;DIV class="sasError"&gt;79&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 79-322: Expecting a (.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;80 array warunek (5) $100 war1-war5 (&amp;amp;war.);&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Attempt to initialize variable zmienna1 in numeric array zmienna with character constant 'APP_CHAR_BRANCH'.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Attempt to initialize variable zmienna2 in numeric array zmienna with character constant 'APP_CHAR_BRANCH'.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Attempt to initialize variable zmienna3 in numeric array zmienna with character constant 'APP_CHAR_BRANCH'.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Attempt to initialize variable zmienna4 in numeric array zmienna with character constant 'APP_CHAR_CARS'.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Attempt to initialize variable zmienna5 in numeric array zmienna with character constant 'APP_CHAR_CARS'.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;81 array grupa (5) $1 grp1-grp5 (&amp;amp;grp.);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;82&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;83 do i = 1 to 5;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;84 put warunek(i);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;85 put zmienna(i);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;86 put grupa(i);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;87 select (zmienna(i));&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;88 when (warunek(i)) zmienna(i) = grupa(i);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;89&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;90 /* when ('DiY') app_char_branch='2'; */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;91 /* when ('Fenitures', 'Radio-TV', 'Computers') app_char_branch='1'; */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;92 /* when ('Empty') app_char_branch='3'; */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;93&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;94 otherwise put 'PROBLEM OBSERVATION';&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;95 end;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;96 end;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;97 run;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Character values have been converted to numeric values at the places given by: (Line):(Column).&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;88:9 88:21&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.VIN_GRP may be incomplete. When this step was stopped there were 0 observations and 24 variables.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Zbiór WORK.VIN_GRP nie został zastąpiony, ponieważ 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.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;98&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;99&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;100 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;113&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="dijitContentPane statusBar dijitBorderContainer-child dijitBorderContainer-dijitContentPane dijitBorderContainerPane dijitAlignBottom"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 Jan 2018 21:59:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429806#M4392</guid>
      <dc:creator>Margrett</dc:creator>
      <dc:date>2018-01-22T21:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT WHEN statement using arrays and variables</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429809#M4393</link>
      <description>&lt;P&gt;Take a look at the statement that I posted earlier:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let zm= ......;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All the quotes should be removed.&amp;nbsp; SAS uses quotes to indicate text, but removes the quotes when referring to variable names.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 22:05:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429809#M4393</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-01-22T22:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT WHEN statement using arrays and variables</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429810#M4394</link>
      <description>&lt;P&gt;Still no. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; I've tried these. To add " ' " or no etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;61&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;62&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;63 %let zm=APP_CHAR_BRANCH APP_CHAR_BRANCH APP_CHAR_BRANCH APP_CHAR_CARS APP_CHAR_CARS;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;64&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;65 /* %let war="when ('Empty')" "when ('Fenitures','Radio-TV','Computers')" "when ('DiY')" "when ('Owner')" "when ('No')";&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;65 ! */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;66 %let war='Empty' 'Fenitures, Radio-TV, Computers' 'DiY' 'Owner' 'No';&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;67 /* */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;68 /* %put &amp;amp;war.; */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;69 %let grp='3' '1' '2' '2' '1';&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;70 /* %let grp=3 1 2 2 1; */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;71 /* %put &amp;amp;grp.; */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73 data vin_grp(drop=i);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 set vin_sample;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75 /* array zmienna (5) $15 zm1-zm5 (&amp;amp;zm.); */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76 array zmienna (5) $ (&amp;amp;zm.);&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Line generated by the macro variable "ZM".&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76 APP_CHAR_BRANCH APP_CHAR_BRANCH APP_CHAR_BRANCH APP_CHAR_CARS APP_CHAR_CARS&lt;/DIV&gt;&lt;DIV class="sasError"&gt;_______________&lt;/DIV&gt;&lt;DIV class="sasError"&gt;22&lt;/DIV&gt;&lt;DIV class="sasError"&gt;76&lt;/DIV&gt;&lt;DIV class="sasError focus-line"&gt;ERROR 22-322: Syntax error, expecting one of the following: łańcucha znaków w cudzysłowie, stałej numerycznej,&lt;/DIV&gt;&lt;DIV class="sasError"&gt;stałej daty-czasu, braku danych, iterator, (.&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;77 array warunek (5) $100 war1-war5 (&amp;amp;war.);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 array grupa (5) $1 grp1-grp5 (&amp;amp;grp.);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;79&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;80 /* do i = 1 to 3; */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;81 /* */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;82 /* put warunek(i); */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;83 /* put zmienna(i); */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;84 /* put grupa(i); */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;85 /* put warunek(i); put zmienna(i); put grupa(i); */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;86 select (zmienna(1));&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;87 /* when (warunek(i)) zmienna(i)=grupa(i); */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;88 when (warunek(1)) zmienna(1)='1';&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;89&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;90 /* when ('DiY') app_char_branch='2'; */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;91 /* when ('Fenitures', 'Radio-TV', 'Computers') app_char_branch='1'; */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;92 /* when ('Empty') app_char_branch='3'; */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;93&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;94 otherwise put 'PROBLEM OBSERVATION';&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;95 end;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;96 /* end; */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;97 run;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: The variable i in the DROP, KEEP, or RENAME list has never been referenced.&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.VIN_GRP may be incomplete. When this step was stopped there were 0 observations and 24 variables.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Zbiór WORK.VIN_GRP nie został zastąpiony, ponieważ 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.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;98&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;99&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;100&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;101 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;114&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 Jan 2018 22:09:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429810#M4394</guid>
      <dc:creator>Margrett</dc:creator>
      <dc:date>2018-01-22T22:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT WHEN statement using arrays and variables</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429812#M4395</link>
      <description>&lt;P&gt;Note that &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;&amp;nbsp;recommended:&lt;/P&gt;
&lt;P&gt;array zmienna (5) &amp;amp;zm;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You used&lt;/P&gt;
&lt;P&gt;array zmienna (5) $ &lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/FONT&gt;&amp;amp;zm.&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Parenthesized values in that location are &lt;STRONG&gt;not&lt;/STRONG&gt; variable names but values to assign to the variables created&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 22:16:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429812#M4395</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-01-22T22:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT WHEN statement using arrays and variables</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429818#M4397</link>
      <description>&lt;P&gt;Oh! My bad. I changed&amp;nbsp;the code several times so... My mistake! It's working! Thank you! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have external question now :))&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create three variables automaticaly from that second dataset. Something like that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC surveyselect data=PROJEKT.vin&lt;BR /&gt;out=PROJEKT.vin_sample&lt;BR /&gt;method=srs sampsize=3000; /* simple random sample - srs */&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sort data=PROJEKT.PODZIALY_ZNAKOWE out=PROJEKT.PODZIALY_ZNAKOWE;&lt;BR /&gt;by zmienna;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;/* zmienna */&lt;BR /&gt;Proc sql noprint;&lt;BR /&gt;Select zmienna into :zm separated by ' '&lt;BR /&gt;from PROJEKT.PODZIALY_ZNAKOWE order by zmienna;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;%put &amp;amp;zmienna.;&lt;BR /&gt;%let ilosc=&amp;amp;sqlobs;&lt;/P&gt;&lt;P&gt;/* warunek */&lt;BR /&gt;Proc sql noprint;&lt;BR /&gt;Select war into :war separated by ' '&lt;BR /&gt;from PROJEKT.PODZIALY_ZNAKOWE order by zmienna;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;%put &amp;amp;war.;&lt;/P&gt;&lt;P&gt;/* grupa */&lt;BR /&gt;Proc sql noprint;&lt;BR /&gt;Select grp into :grp separated by ' '&lt;BR /&gt;from PROJEKT.PODZIALY_ZNAKOWE order by zmienna;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;%put &amp;amp;grp.;&lt;/P&gt;&lt;P&gt;/* %let zm=APP_CHAR_BRANCH APP_CHAR_BRANCH APP_CHAR_BRANCH APP_CHAR_CARS APP_CHAR_CARS; */&lt;BR /&gt;/* */&lt;BR /&gt;/* %let war="when ('Empty')" "when ('Fenitures','Radio-TV','Computers')" "when ('DiY')" "when ('Owner')" "when ('No')"; */&lt;BR /&gt;/* %let war='Empty' 'Fenitures, Radio-TV, Computers' 'DiY' 'Owner' 'No'; */&lt;BR /&gt;/* */&lt;BR /&gt;/* %put &amp;amp;war.; */&lt;BR /&gt;/* %let grp='3' '1' '2' '2' '1'; */&lt;BR /&gt;/* %let grp=3 1 2 2 1; */&lt;BR /&gt;/* %put &amp;amp;grp.; */&lt;/P&gt;&lt;P&gt;data vin_grp(drop=i);&lt;BR /&gt;set vin_sample;&lt;BR /&gt;array zmienna (&amp;amp;sqlobs) &amp;amp;zm.;&lt;BR /&gt;array warunek (&amp;amp;sqlobs) $100 _temporary_ (&amp;amp;war.);&lt;BR /&gt;array grupa (&amp;amp;sqlobs) $1 _temporary_ (&amp;amp;grp.);&lt;BR /&gt;&lt;BR /&gt;do i = 1 to &amp;amp;sqlobs;&lt;/P&gt;&lt;P&gt;select (zmienna(i));&lt;BR /&gt;when (warunek(i)) zmienna(i)=grupa(i);&lt;/P&gt;&lt;P&gt;otherwise put 'PROBLEM OBSERVATION';&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But then I will have new problems. I need to erase word "When" And "(" , ")" from condition (war) and also put more " ' " when there are more then one condition. Secondly in group (grp) the type of that column is numeric. And I will need character. Could you help me with that also?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thougth that I use the condition variable (war) in a different way, easier, but I can't do that... I mean instead of&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when (warunek(i)) zmienna(i)=grupa(i); (in this part I type variable warunek by hand so I overlooked the word "when" etc.)&lt;/P&gt;&lt;P&gt;do&lt;/P&gt;&lt;P&gt;warunek(i) zmienna(i)= grupa(i); (in this case I will take the whole text from variable but I get an error according to missing when word in select statement).&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 22:35:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429818#M4397</guid>
      <dc:creator>Margrett</dc:creator>
      <dc:date>2018-01-22T22:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT WHEN statement using arrays and variables</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429827#M4399</link>
      <description>&lt;P&gt;Advice:&amp;nbsp; get this code to work without macro language at all.&amp;nbsp; Once you have that done, you can consider how to apply macro language.&amp;nbsp; There are too many features about the program that are either not working, or are working poorly.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Macro language does not add any functionality to a SAS program.&amp;nbsp; It merely automates a program that is already working.&amp;nbsp; But you have not gotten to the point of having a working program yet.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 23:34:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429827#M4399</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-01-22T23:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT WHEN statement using arrays and variables</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429832#M4400</link>
      <description>&lt;P&gt;That's exactly why you would use a format, it scales better than a whole lot of SELECT statements and is reusable. You still convert your data but it's much much easier. And you can create formats from data sets, so if you have a lookup table that maps a value and the corresponding new value you can easily create your formats without having to manually type each one out. No macro's and easier.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In a perfect world you'd have a lookup table structured like the following, which I suspect you may:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VariableName OldValue NewValue&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 00:05:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429832#M4400</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-23T00:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT WHEN statement using arrays and variables</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429909#M4408</link>
      <description>&lt;P&gt;Okay, thank you. I will work on that in&amp;nbsp;the evening and&amp;nbsp;later I will post my progress &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 08:25:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429909#M4408</guid>
      <dc:creator>Margrett</dc:creator>
      <dc:date>2018-01-23T08:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT WHEN statement using arrays and variables</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429966#M4411</link>
      <description>&lt;P&gt;I changed the dataset which&amp;nbsp;contains condtitions. I removed the word "when" and round brackets. So now I have something like this (see attachments). My code is working if and only I put conditions by hand.&amp;nbsp;The problem are the apostrophes ( ' ) in multiple obeservations like &lt;SPAN&gt;'Fenitures','Radio-TV','Computers' array thinks that there are 3 objects&amp;nbsp;instead of 1. I tried to change the apostrophes ( ' ) to ( " ), to somehow mark out these multiple observations, but I can't get any succes &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you give me some advice?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My code now.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC surveyselect data=PROJEKT.vin&lt;BR /&gt;out=vin_sample&lt;BR /&gt;method=srs sampsize=3000; /* simple random sample - srs */&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sort data=PROJEKT.PODZIALY_ZNAKOWE out=PROJEKT.PODZIALY_ZNAKOWE;&lt;BR /&gt;by zmienna war;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* zmienna - variable's name */&lt;BR /&gt;Proc sql noprint;&lt;BR /&gt;Select zmienna into :zm separated by ' '&lt;BR /&gt;from PROJEKT.PODZIALY_ZNAKOWE order by zmienna;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;%put &amp;amp;zm.;&lt;BR /&gt;%let ilosc=&amp;amp;sqlobs;&lt;BR /&gt;%put &amp;amp;ilosc.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* warunek - condition */&lt;BR /&gt;Proc sql noprint;&lt;BR /&gt;Select war into :war separated by ' '&lt;BR /&gt;from PROJEKT.PODZIALY_ZNAKOWE order by zmienna;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;%put &amp;amp;war.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* grupa - group */&lt;BR /&gt;Proc sql noprint;&lt;BR /&gt;Select cats("'",grp,"'")&lt;BR /&gt;into :grp separated by ' '&lt;BR /&gt;from grp_char order by zmienna;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;%put &amp;amp;grp.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* %let war='Empty' 'Fenitures, Radio-TV, Computers' 'DiY' 'Owner' 'No'; */&amp;nbsp; &amp;nbsp; /*it's working for the first five observations if I put it by myself and then the code leaves out the&amp;nbsp;&lt;SPAN&gt;'Fenitures, Radio-TV, Computers'&amp;nbsp;expression because it's wrong (missing apostrophes inside )&amp;nbsp;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;%put &amp;amp;war.;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data vin_grp(drop=i);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set vin_sample;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;array zmienna (&amp;amp;sqlobs) &amp;amp;zm.;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;array warunek (5) $100 _temporary_ (&amp;amp;war.);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;array grupa (&amp;amp;sqlobs) $1 _temporary_ (&amp;amp;grp.);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do i = 1 to 5;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;select (zmienna(i));&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;when (warunek(i)) zmienna(i)=grupa(i);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;otherwise put 'PROBLEM OBSERVATION';&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;end;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: Could I do something like to add additional apostrophes (diffrent from original one) for all of the conditions and then after read by variable all of the conditions and know the exact number of it reduce these apostrophes somewhere in the statement or before (?) --&amp;gt;&amp;nbsp;when (warunek(i)) zmienna(i)=grupa(i);&amp;nbsp; Is it possible to do that kind of trick?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 13:11:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/429966#M4411</guid>
      <dc:creator>Margrett</dc:creator>
      <dc:date>2018-01-23T13:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT WHEN statement using arrays and variables</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/430009#M4413</link>
      <description>&lt;P&gt;When&amp;nbsp;you first posted your original question, you had that part right.&amp;nbsp; Use a single set of quotes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;'Fenitures,Radio-TV,Computers' &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Whatever it takes to make that happen, do that before the final DATA step.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;SPAN&gt;*********** EDITED:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;SPAN&gt;Your claims about "seriously, all I need ..." might be right, or might be wrong.&amp;nbsp; That claim is not substantiated by what you have posted so far.&amp;nbsp; Your final DATA step is small enough that you should be able to test it with absolutely zero macro language to demonstrate what the final program needs to look like.&amp;nbsp; Then we can worry about how to get macro language to generate that program.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 16:25:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/430009#M4413</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-01-23T16:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT WHEN statement using arrays and variables</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/430048#M4414</link>
      <description>&lt;P&gt;Okay... But I need the form &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'Fenitures','Radio-TV','Computers' at the end. Do you have different idea for this problem?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 15:51:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/430048#M4414</guid>
      <dc:creator>Margrett</dc:creator>
      <dc:date>2018-01-23T15:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT WHEN statement using arrays and variables</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/430066#M4415</link>
      <description>&lt;P&gt;Seriously I just need a function to replace apostrophe ( " ) from each value from array "warunek" (condition) in this place.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;EDIT: Oh, I find it. I write this line of code: warunek(i)=tranwrd(warunek(i), '"', '');&lt;/P&gt;&lt;P&gt;And it works fine, but something else in my code are still wrong. Cause zmienna(i) - variable's name - now have the names from conditions array. I don't get it ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC surveyselect data=PROJEKT.vin&lt;BR /&gt;out=vin_sample&lt;BR /&gt;method=srs sampsize=3000; /* simple random sample - srs */&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sort data=PROJEKT.PODZIALY_ZNAKOWE out=PROJEKT.PODZIALY_ZNAKOWE;&lt;BR /&gt;by zmienna war;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* zmienna */&lt;BR /&gt;Proc sql noprint;&lt;BR /&gt;Select zmienna into :zm separated by ' '&lt;BR /&gt;from PROJEKT.PODZIALY_ZNAKOWE order by zmienna;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;%put &amp;amp;zm.;&lt;BR /&gt;%let ilosc=&amp;amp;sqlobs;&lt;BR /&gt;%put &amp;amp;ilosc.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* warunek */&lt;BR /&gt;Proc sql noprint;&lt;BR /&gt;Select cats('"',war,'"')&lt;BR /&gt;into :war separated by ' '&lt;BR /&gt;from PROJEKT.PODZIALY_ZNAKOWE order by zmienna;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;%put &amp;amp;war.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* grupa */&lt;BR /&gt;Proc sql noprint;&lt;BR /&gt;Select cats("'",grp,"'")&lt;BR /&gt;into :grp separated by ' '&lt;BR /&gt;from PROJEKT.PODZIALY_ZNAKOWE order by zmienna;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;%put &amp;amp;grp.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data vin_grp(drop=i);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;set vin_sample;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;array zmienna (&amp;amp;sqlobs) &amp;amp;zm.;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;array warunek (&amp;amp;sqlobs) $100 _temporary_ (&amp;amp;war.);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;array grupa (&amp;amp;sqlobs) $1 _temporary_ (&amp;amp;grp.);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do i = 1 to &amp;amp;sqlobs;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;warunek(i)=tranwrd(warunek(i), '"', '');&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;put warunek(i);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;put zmienna(i);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;put grupa(i);&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; select (zmienna(i));&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;when (warunek(i)) zmienna(i)=grupa(i);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; otherwise put 'PROBLEM OBSERVATION';&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 16:36:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SELECT-WHEN-statement-using-arrays-and-variables/m-p/430066#M4415</guid>
      <dc:creator>Margrett</dc:creator>
      <dc:date>2018-01-23T16:36:51Z</dc:date>
    </item>
  </channel>
</rss>

