<?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: Specifying character Values as Ranges in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Specifying-character-Values-as-Ranges/m-p/316964#M69341</link>
    <description>&lt;P&gt;It looks like you just need to clean up the syntax of your VALUE statement. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Remove the space after the dollar sign. &amp;nbsp;It might work with the space there, but probably not.&lt;/LI&gt;
&lt;LI&gt;Remove the semicolon after EMP. &amp;nbsp;The VALUE statement doesn't end until later.&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Tue, 06 Dec 2016 09:28:58 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2016-12-06T09:28:58Z</dc:date>
    <item>
      <title>Specifying character Values as Ranges</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Specifying-character-Values-as-Ranges/m-p/316961#M69338</link>
      <description>&lt;P&gt;Hello, I have the following dataset&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data test;&lt;BR /&gt;infile datalines;&lt;BR /&gt;input Est_inc $3.;&lt;BR /&gt;datalines;&lt;BR /&gt;008&lt;BR /&gt;015&lt;BR /&gt;020&lt;BR /&gt;040&lt;BR /&gt;051&lt;BR /&gt;060&lt;BR /&gt;061&lt;BR /&gt;070&lt;BR /&gt;150&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The values are character but are clean data. I want to specify range as follows, but unsuccesful. Please help.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc format;&lt;BR /&gt;value $ emp;&lt;BR /&gt;"008"-"020"="8-20"&lt;BR /&gt;"040"-"060"="40-60"&lt;BR /&gt;"061"-"150"="61-150"&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 09:22:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Specifying-character-Values-as-Ranges/m-p/316961#M69338</guid>
      <dc:creator>sasmaverick</dc:creator>
      <dc:date>2016-12-06T09:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying character Values as Ranges</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Specifying-character-Values-as-Ranges/m-p/316964#M69341</link>
      <description>&lt;P&gt;It looks like you just need to clean up the syntax of your VALUE statement. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Remove the space after the dollar sign. &amp;nbsp;It might work with the space there, but probably not.&lt;/LI&gt;
&lt;LI&gt;Remove the semicolon after EMP. &amp;nbsp;The VALUE statement doesn't end until later.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 06 Dec 2016 09:28:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Specifying-character-Values-as-Ranges/m-p/316964#M69341</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-12-06T09:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying character Values as Ranges</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Specifying-character-Values-as-Ranges/m-p/316976#M69346</link>
      <description>&lt;P&gt;Personally I avoid using formats, but even more so when dealing with numbers as characters. &amp;nbsp;Would the text "8" be considered between "008" and "024"? &amp;nbsp;Textually its not. &amp;nbsp;Is there a reason for the format need? &amp;nbsp;Why not just convert to numeric and use numeric ranging - makes more sense as your really dealing with numeric data. &amp;nbsp;Nothing stopping you keeping both, text and num, and using num.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 10:31:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Specifying-character-Values-as-Ranges/m-p/316976#M69346</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-12-06T10:31:04Z</dc:date>
    </item>
  </channel>
</rss>

