<?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 Issue with using Proc Format on a character variable - University Edition in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Issue-with-using-Proc-Format-on-a-character-variable-University/m-p/439753#M69151</link>
    <description>&lt;P&gt;Hi! I am trying to apply the format procedure to the data below so that Exposure A will be “Anemic” and Exposure B “Not Anemic”. Similarly, for Gender; 1 for “Male” and 2 for “Female”. The code is working correctly for male/female, but isn't for exposure and I'm not sure why. Any help is much appreciated!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data Anemia;&lt;BR /&gt;input Exposure $ Gender $ count;&lt;BR /&gt;datalines;&lt;BR /&gt;A 1 205&lt;BR /&gt;A 2 129&lt;BR /&gt;B 1 89&lt;BR /&gt;B 2 86&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc format;&lt;BR /&gt;value $exposurefmt&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;'A'='Anemic'&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;'B'= 'Not Anemic';&lt;BR /&gt;value $genderfmt&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;1 = 'male'&lt;BR /&gt;2 = 'female';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=Anemia;&lt;BR /&gt;format exposure $exposurefmt. gender $genderfmt.;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Feb 2018 16:32:07 GMT</pubDate>
    <dc:creator>cwerpystory</dc:creator>
    <dc:date>2018-02-23T16:32:07Z</dc:date>
    <item>
      <title>Issue with using Proc Format on a character variable - University Edition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Issue-with-using-Proc-Format-on-a-character-variable-University/m-p/439753#M69151</link>
      <description>&lt;P&gt;Hi! I am trying to apply the format procedure to the data below so that Exposure A will be “Anemic” and Exposure B “Not Anemic”. Similarly, for Gender; 1 for “Male” and 2 for “Female”. The code is working correctly for male/female, but isn't for exposure and I'm not sure why. Any help is much appreciated!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data Anemia;&lt;BR /&gt;input Exposure $ Gender $ count;&lt;BR /&gt;datalines;&lt;BR /&gt;A 1 205&lt;BR /&gt;A 2 129&lt;BR /&gt;B 1 89&lt;BR /&gt;B 2 86&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc format;&lt;BR /&gt;value $exposurefmt&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;'A'='Anemic'&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;'B'= 'Not Anemic';&lt;BR /&gt;value $genderfmt&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;1 = 'male'&lt;BR /&gt;2 = 'female';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=Anemia;&lt;BR /&gt;format exposure $exposurefmt. gender $genderfmt.;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 16:32:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Issue-with-using-Proc-Format-on-a-character-variable-University/m-p/439753#M69151</guid>
      <dc:creator>cwerpystory</dc:creator>
      <dc:date>2018-02-23T16:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with using Proc Format on a character variable - University Edition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Issue-with-using-Proc-Format-on-a-character-variable-University/m-p/439754#M69152</link>
      <description>&lt;P&gt;Your code worked correctly for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 16:39:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Issue-with-using-Proc-Format-on-a-character-variable-University/m-p/439754#M69152</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2018-02-23T16:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with using Proc Format on a character variable - University Edition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Issue-with-using-Proc-Format-on-a-character-variable-University/m-p/439755#M69153</link>
      <description>&lt;P&gt;Thanks! I just restarted SAS and it worked for me too. Strange!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 16:41:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Issue-with-using-Proc-Format-on-a-character-variable-University/m-p/439755#M69153</guid>
      <dc:creator>cwerpystory</dc:creator>
      <dc:date>2018-02-23T16:41:52Z</dc:date>
    </item>
  </channel>
</rss>

