<?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 Upper or Lower case? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Upper-or-Lower-case/m-p/621643#M182769</link>
    <description>&lt;P&gt;Hello experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to change the text into number format in several variables.&amp;nbsp; However, I found out the text format coming so many different ways.&amp;nbsp; For example, the positive answer is 'Yes', 'Y','y', 'YES', 'yes'.&amp;nbsp;&amp;nbsp; My current coding couldn't cover all of the requirement.&amp;nbsp;&amp;nbsp; Any idea how to fix it?&amp;nbsp; Thanks.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want (drop =  A B C D E);
	 set have;
	 array Old (*) A B C D E;
	 array New (*) AA BB CC DD EE;
	 do i = 1 to dim(Old); 
	  if Old(i) in ('No', 'n') then New(i)=0;
	  else if Old(i) in ('Yes', 'y') then New(i)=1;
	  else if Old(i) in ('Unknown') then New(i)=9;
	end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 01 Feb 2020 15:32:39 GMT</pubDate>
    <dc:creator>ybz12003</dc:creator>
    <dc:date>2020-02-01T15:32:39Z</dc:date>
    <item>
      <title>Upper or Lower case?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Upper-or-Lower-case/m-p/621643#M182769</link>
      <description>&lt;P&gt;Hello experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to change the text into number format in several variables.&amp;nbsp; However, I found out the text format coming so many different ways.&amp;nbsp; For example, the positive answer is 'Yes', 'Y','y', 'YES', 'yes'.&amp;nbsp;&amp;nbsp; My current coding couldn't cover all of the requirement.&amp;nbsp;&amp;nbsp; Any idea how to fix it?&amp;nbsp; Thanks.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want (drop =  A B C D E);
	 set have;
	 array Old (*) A B C D E;
	 array New (*) AA BB CC DD EE;
	 do i = 1 to dim(Old); 
	  if Old(i) in ('No', 'n') then New(i)=0;
	  else if Old(i) in ('Yes', 'y') then New(i)=1;
	  else if Old(i) in ('Unknown') then New(i)=9;
	end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Feb 2020 15:32:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Upper-or-Lower-case/m-p/621643#M182769</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2020-02-01T15:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Upper or Lower case?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Upper-or-Lower-case/m-p/621645#M182771</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want (drop =  A B C D E);
	 set have;
	 array Old (*) A B C D E;
	 array New (*) AA BB CC DD EE;
	 do i = 1 to dim(Old); 
	  if upcase(Old(i)) in ('NO', 'N') then New(i)=0;
	  else if upcase(Old(i)) in ('YES', 'Y') then New(i)=1;
	  else if upcase(Old(i)) in ('UNKNOWN') then New(i)=9;
	end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Feb 2020 15:35:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Upper-or-Lower-case/m-p/621645#M182771</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-02-01T15:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Upper or Lower case?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Upper-or-Lower-case/m-p/621646#M182772</link>
      <description>&lt;P&gt;Thanks much!&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2020 15:45:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Upper-or-Lower-case/m-p/621646#M182772</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2020-02-01T15:45:17Z</dc:date>
    </item>
  </channel>
</rss>

