<?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: Help with creating an upper case variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Help-with-creating-an-upper-case-variable/m-p/805174#M317138</link>
    <description>&lt;P&gt;Looks like you have your assignment statement the wrong way around - the variable you are saving to should be to the left the the equals sign. Try this.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA DM1;
SET CHETNA.DM;
ETHNIC = UPCASE(ETHNIC_DEC);
PUT ETHNIC=;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Mar 2022 00:17:41 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2022-03-31T00:17:41Z</dc:date>
    <item>
      <title>Help with creating an upper case variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-creating-an-upper-case-variable/m-p/805170#M317135</link>
      <description>&lt;P&gt;DATA DM1;&lt;BR /&gt;SET CHETNA.DM;&lt;BR /&gt;ETHNIC_DEC= UPCASE(ETHNIC);&lt;BR /&gt;PUT ETHNIC=;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;above code i tried it does not work.&lt;/P&gt;
&lt;P&gt;below is original data and requirement is Read all ETHNIC_DEC in upper case and save it in new var ETHNIC.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ckvv8182_1-1648683373456.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69988i59EE893BBB89762D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ckvv8182_1-1648683373456.png" alt="ckvv8182_1-1648683373456.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 00:13:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-creating-an-upper-case-variable/m-p/805170#M317135</guid>
      <dc:creator>ckvv8182</dc:creator>
      <dc:date>2022-03-31T00:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to get fast, helpful answers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-creating-an-upper-case-variable/m-p/805172#M317136</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/421468"&gt;@ckvv8182&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems you have mixed up your input variable in the UPCASE function. Try the following...&lt;/P&gt;
&lt;P&gt;DATA DM1;&lt;BR /&gt;SET CHETNA.DM;&lt;BR /&gt;ETHNIC= UPCASE(ETHNIC_DEC);&lt;BR /&gt;PUT ETHNIC=;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note the PUT statement just puts the values into the log. You don't need to include it to create the variable. The statement above does this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards,&lt;/P&gt;
&lt;P&gt;Michelle&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 00:12:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-creating-an-upper-case-variable/m-p/805172#M317136</guid>
      <dc:creator>MichelleHomes</dc:creator>
      <dc:date>2022-03-31T00:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help with creating an upper case variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-creating-an-upper-case-variable/m-p/805174#M317138</link>
      <description>&lt;P&gt;Looks like you have your assignment statement the wrong way around - the variable you are saving to should be to the left the the equals sign. Try this.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA DM1;
SET CHETNA.DM;
ETHNIC = UPCASE(ETHNIC_DEC);
PUT ETHNIC=;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 00:17:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-creating-an-upper-case-variable/m-p/805174#M317138</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-03-31T00:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help with creating an upper case variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-creating-an-upper-case-variable/m-p/805202#M317157</link>
      <description>&lt;P&gt;From what the picture(*) tells me, the dataset already contains a numeric variable ETHNIC. You need to get ruid of it before you can create a new character variable with the same name. Use a DROP= dataset option in your SET statement for this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;*) Never use pictures to provide data. Use a data step with datalines, posted in a code box, so we can easily recreate your dataset for testing, without having to guess variable attributes and raw content.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 05:58:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-creating-an-upper-case-variable/m-p/805202#M317157</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-03-31T05:58:48Z</dc:date>
    </item>
  </channel>
</rss>

