<?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: Renamig values of a string variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Renamig-values-of-a-string-variables/m-p/490843#M128560</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another question, when I ran the same code for the other value, the additional aren't formatted. Do you know why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;format&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="token keyword"&gt;value&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;$&lt;/SPAN&gt;product &lt;SPAN class="token string"&gt;'org1-2'&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;'Orange'&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;                   'ban3-3 = 'banana';&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I used the above code.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Aug 2018 13:51:45 GMT</pubDate>
    <dc:creator>samface</dc:creator>
    <dc:date>2018-08-29T13:51:45Z</dc:date>
    <item>
      <title>Renamig values of a string variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Renamig-values-of-a-string-variables/m-p/490836#M128554</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help renaming values of a string variable and perform a proc freq procedure. The column looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column name: Product&lt;/P&gt;&lt;P&gt;Column values: (org1-2, ban3-3)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to change the format of my column values to:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;org1-2 = orange&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ban3-3 = banana&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I used the following code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc format;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;value $product 'Orange' = 'org1-2';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc freq data=work.food;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;tables product;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;format product $product.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;run;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I ran the code, the values didn't change to the format I specified in my code. Any help?&lt;/SPAN&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 13:33:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Renamig-values-of-a-string-variables/m-p/490836#M128554</guid>
      <dc:creator>samface</dc:creator>
      <dc:date>2018-08-29T13:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Renamig values of a string variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Renamig-values-of-a-string-variables/m-p/490837#M128555</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;proc format;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;value $product 'Orange' = 'org1-2';&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;run;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;should be&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
    value $product 'org1-2' = 'Orange';
run; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Aug 2018 13:34:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Renamig-values-of-a-string-variables/m-p/490837#M128555</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-08-29T13:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Renamig values of a string variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Renamig-values-of-a-string-variables/m-p/490839#M128557</link>
      <description>&lt;P&gt;It worked thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;, I was close just had to inverse the order. Thanks again.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 13:39:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Renamig-values-of-a-string-variables/m-p/490839#M128557</guid>
      <dc:creator>samface</dc:creator>
      <dc:date>2018-08-29T13:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Renamig values of a string variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Renamig-values-of-a-string-variables/m-p/490843#M128560</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another question, when I ran the same code for the other value, the additional aren't formatted. Do you know why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;format&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="token keyword"&gt;value&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;$&lt;/SPAN&gt;product &lt;SPAN class="token string"&gt;'org1-2'&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;'Orange'&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;                   'ban3-3 = 'banana';&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I used the above code.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 13:51:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Renamig-values-of-a-string-variables/m-p/490843#M128560</guid>
      <dc:creator>samface</dc:creator>
      <dc:date>2018-08-29T13:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Renamig values of a string variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Renamig-values-of-a-string-variables/m-p/490846#M128562</link>
      <description>&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;value $product 'org1-2' = 'Orange'&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; 'ban3-3' = 'banana';&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 13:55:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Renamig-values-of-a-string-variables/m-p/490846#M128562</guid>
      <dc:creator>samface</dc:creator>
      <dc:date>2018-08-29T13:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Renamig values of a string variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Renamig-values-of-a-string-variables/m-p/490847#M128563</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/113164"&gt;@samface&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another question, when I ran the same code for the other value, the additional aren't formatted. Do you know why?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;I don't know what this means.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 13:57:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Renamig-values-of-a-string-variables/m-p/490847#M128563</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-08-29T13:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Renamig values of a string variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Renamig-values-of-a-string-variables/m-p/490854#M128568</link>
      <description>&lt;P&gt;OK sorry for the typo.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the code below to format additional value whitin my column but nothing has changed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;value $product 'org2-2' = 'orange'&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;'ban3-3' = 'banana';&lt;/P&gt;&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I ran it, the formatting only works for 'orange' and not 'banana'. Am I doing something wrong? or do I need to create a new format for each additional value in my product colum?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 14:04:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Renamig-values-of-a-string-variables/m-p/490854#M128568</guid>
      <dc:creator>samface</dc:creator>
      <dc:date>2018-08-29T14:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Renamig values of a string variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Renamig-values-of-a-string-variables/m-p/490856#M128570</link>
      <description>&lt;P&gt;No worries I got it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 14:08:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Renamig-values-of-a-string-variables/m-p/490856#M128570</guid>
      <dc:creator>samface</dc:creator>
      <dc:date>2018-08-29T14:08:31Z</dc:date>
    </item>
  </channel>
</rss>

