<?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: Trying to understand how to use Proc Format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-understand-how-to-use-Proc-Format/m-p/284386#M58048</link>
    <description>&lt;P&gt;sorry for the bother... i didn't see the '.' after the format name but everything works now. &amp;nbsp;Thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jul 2016 16:48:39 GMT</pubDate>
    <dc:creator>Picketoaks</dc:creator>
    <dc:date>2016-07-14T16:48:39Z</dc:date>
    <item>
      <title>Trying to understand how to use Proc Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-understand-how-to-use-Proc-Format/m-p/284347#M58033</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm reading my data and then trying to use Proc Format. &amp;nbsp;When I use Proc Print the initial values are not formatted. &amp;nbsp;After reading some explanations I'm not sure why and need a bit of help. &amp;nbsp;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data mydata;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; INFILE mysource dlm=',' missover;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; input Site : $1.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Pt : $2.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Sex&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Race&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dosedate : mmddyy10.&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Height&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Weight&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Result1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Result2&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Result3;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc format;&lt;BR /&gt;&amp;nbsp; value Sex&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1 = 'Female'&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 2 = 'Male';&lt;BR /&gt;&amp;nbsp; value Race&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1 = 'Asian'&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 2 = 'Black'&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 3 = 'Caucasian'&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 4 = 'other';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc print data=mydata;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 14:35:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-understand-how-to-use-Proc-Format/m-p/284347#M58033</guid>
      <dc:creator>Picketoaks</dc:creator>
      <dc:date>2016-07-14T14:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to understand how to use Proc Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-understand-how-to-use-Proc-Format/m-p/284353#M58035</link>
      <description>&lt;P&gt;You'll want to call PROC FORMAT to create the formats &lt;EM&gt;before&lt;/EM&gt; the data step. Then use them like other formats (Race Race., for example; like you might call Date monyy7.) in the data step.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 14:39:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-understand-how-to-use-Proc-Format/m-p/284353#M58035</guid>
      <dc:creator>paulkaefer</dc:creator>
      <dc:date>2016-07-14T14:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to understand how to use Proc Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-understand-how-to-use-Proc-Format/m-p/284354#M58036</link>
      <description>&lt;P&gt;You created a format, you never applied it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc print data=mydata;
Format sex sex. Race race.;
Run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This would only apply to the proc print however. You may want to change the order, put the proc format before the data import step and add the format statement to your data step.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 14:41:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-understand-how-to-use-Proc-Format/m-p/284354#M58036</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-14T14:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to understand how to use Proc Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-understand-how-to-use-Proc-Format/m-p/284380#M58045</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I moved the proc format to the top before the data step and ran the proc print using the format statement as suggested and to keep it simple for now... but it doesn't appear to affect the values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 16:26:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-understand-how-to-use-Proc-Format/m-p/284380#M58045</guid>
      <dc:creator>Picketoaks</dc:creator>
      <dc:date>2016-07-14T16:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to understand how to use Proc Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-understand-how-to-use-Proc-Format/m-p/284382#M58046</link>
      <description>&lt;P&gt;Thanks... please see my next commet to Reeza.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 16:27:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-understand-how-to-use-Proc-Format/m-p/284382#M58046</guid>
      <dc:creator>Picketoaks</dc:creator>
      <dc:date>2016-07-14T16:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to understand how to use Proc Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-understand-how-to-use-Proc-Format/m-p/284384#M58047</link>
      <description>&lt;P&gt;I noticed these notes in the log if it matters:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;30 proc format;&lt;BR /&gt;31 value Sex&lt;BR /&gt;32 1 = 'Female'&lt;BR /&gt;33 2 = 'Male';&lt;BR /&gt;NOTE: Format SEX is already on the library WORK.FORMATS.&lt;BR /&gt;NOTE: Format SEX has been output.&lt;BR /&gt;34 value Race&lt;BR /&gt;35 1 = 'Asian'&lt;BR /&gt;36 2 = 'Black'&lt;BR /&gt;37 3 = 'Caucasian'&lt;BR /&gt;38 4 = 'other';&lt;BR /&gt;NOTE: Format RACE is already on the library WORK.FORMATS.&lt;BR /&gt;NOTE: Format RACE has been output.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 16:32:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-understand-how-to-use-Proc-Format/m-p/284384#M58047</guid>
      <dc:creator>Picketoaks</dc:creator>
      <dc:date>2016-07-14T16:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to understand how to use Proc Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-understand-how-to-use-Proc-Format/m-p/284386#M58048</link>
      <description>&lt;P&gt;sorry for the bother... i didn't see the '.' after the format name but everything works now. &amp;nbsp;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 16:48:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-understand-how-to-use-Proc-Format/m-p/284386#M58048</guid>
      <dc:creator>Picketoaks</dc:creator>
      <dc:date>2016-07-14T16:48:39Z</dc:date>
    </item>
  </channel>
</rss>

