<?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 Proc Format: Character Variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Format-Character-Variables/m-p/159477#M263183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have numeric values stored as Character Variables, but I want to group them in ranges. Since for Character Variables, there is always the issue of missing out some&amp;nbsp; values if I use range, can I just list out all the values? Thanks &lt;/P&gt;&lt;P&gt;Eg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc Format;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Value $ABC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'1', '2', '3'= '1-3';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Nov 2013 07:51:45 GMT</pubDate>
    <dc:creator>apple</dc:creator>
    <dc:date>2013-11-29T07:51:45Z</dc:date>
    <item>
      <title>Proc Format: Character Variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Format-Character-Variables/m-p/159477#M263183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have numeric values stored as Character Variables, but I want to group them in ranges. Since for Character Variables, there is always the issue of missing out some&amp;nbsp; values if I use range, can I just list out all the values? Thanks &lt;/P&gt;&lt;P&gt;Eg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc Format;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Value $ABC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'1', '2', '3'= '1-3';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2013 07:51:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Format-Character-Variables/m-p/159477#M263183</guid>
      <dc:creator>apple</dc:creator>
      <dc:date>2013-11-29T07:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format: Character Variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Format-Character-Variables/m-p/159478#M263184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@apple&lt;/P&gt;&lt;P&gt;Yes you can list individual values as you suggest.&lt;/P&gt;&lt;P&gt;I have to ask why you are storing numeric values as character variables when it is causing you some difficulty managing the data.&amp;nbsp; If your concern is saving space you would do better to apply the compress= option on the dataset.&amp;nbsp; Numeric ranges are much easier to manage intuitively with numeric formats, and this is true even if the numbers are categorical values.&amp;nbsp; Especially with dates (such as in the years data you posted elsewhere), you should be using numeric variables in preference to characters because it facilitates date arithmetic (comparing dates or displacing them by given intervals). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard in NZ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Nov 2013 22:30:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Format-Character-Variables/m-p/159478#M263184</guid>
      <dc:creator>RichardinOz</dc:creator>
      <dc:date>2013-11-30T22:30:39Z</dc:date>
    </item>
  </channel>
</rss>

