<?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: Proc format errors in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-format-errors/m-p/327218#M62378</link>
    <description>&lt;P&gt;You have numeric formats so you do not need the $ in front of the format, that is for character formats. A format type (numeric/character) is based on the input type, in this case 1/2.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have two proc freqs in your code, the&amp;nbsp;second set of code should have worked fine. If it didn't, please post the log.&lt;/P&gt;
&lt;P&gt;The first proc freq would not have worked because of the $ sign.&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>Tue, 24 Jan 2017 23:14:00 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-01-24T23:14:00Z</dc:date>
    <item>
      <title>Proc format errors</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-format-errors/m-p/327216#M62377</link>
      <description>&lt;P&gt;For my data, I keep getting the error message&amp;nbsp;ERROR: You are trying to use the character format $SEX with the numeric variable sex in data set WORK.STUDY2. I have tried formatting it in different ways but keep getting the same message, any help is appreciated.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc format;&lt;BR /&gt;*formats the sex and race variable variable as in step 5;&lt;BR /&gt;value _sex&lt;BR /&gt;1='female'&lt;BR /&gt;2='male';&lt;BR /&gt;value _race&lt;BR /&gt;1='Asian'&lt;BR /&gt;2='Black'&lt;BR /&gt;3='Caucasian'&lt;BR /&gt;4='Other';&lt;BR /&gt;run;&lt;BR /&gt;Proc freq data=study2;&lt;BR /&gt;tables dosedate doselot site_name pt prot_amend limit sex race;&lt;BR /&gt;format sex $_sex. race $_race.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc freq data=study2;&lt;BR /&gt;tables dosedate doselot site_name pt prot_amend limit sex race;&lt;BR /&gt;format sex _sex. race _race.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 23:05:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-format-errors/m-p/327216#M62377</guid>
      <dc:creator>zjhansen30</dc:creator>
      <dc:date>2017-01-24T23:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc format errors</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-format-errors/m-p/327218#M62378</link>
      <description>&lt;P&gt;You have numeric formats so you do not need the $ in front of the format, that is for character formats. A format type (numeric/character) is based on the input type, in this case 1/2.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have two proc freqs in your code, the&amp;nbsp;second set of code should have worked fine. If it didn't, please post the log.&lt;/P&gt;
&lt;P&gt;The first proc freq would not have worked because of the $ sign.&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>Tue, 24 Jan 2017 23:14:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-format-errors/m-p/327218#M62378</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-01-24T23:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc format errors</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-format-errors/m-p/327220#M62379</link>
      <description>&lt;P&gt;Sorry, I was trying to show that I have used the format command both ways in the proc freq, and neither of them worked. &amp;nbsp;It gives me the same error message no matter if I use the $ symbol or not.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 23:34:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-format-errors/m-p/327220#M62379</guid>
      <dc:creator>zjhansen30</dc:creator>
      <dc:date>2017-01-24T23:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc format errors</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-format-errors/m-p/327221#M62380</link>
      <description>&lt;P&gt;Post your full code and log.&lt;/P&gt;
&lt;P&gt;It should work, if it's not then something else is the issue.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 23:35:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-format-errors/m-p/327221#M62380</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-01-24T23:35:50Z</dc:date>
    </item>
  </channel>
</rss>

