<?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 for consecutive numbers of a character variable in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-format-for-consecutive-numbers-of-a-character-variable/m-p/181650#M46273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what you are asking. Are you just looking for how to declare a range? If so,:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;value $agegrp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; "01"="younger than 8"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; "02"="age 9-12"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; "03"="age 13-17"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; "04"-"06"="adult";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Feb 2015 17:53:27 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2015-02-25T17:53:27Z</dc:date>
    <item>
      <title>proc format for consecutive numbers of a character variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-format-for-consecutive-numbers-of-a-character-variable/m-p/181649#M46272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I've got lots of help here. Here is another question I come across.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a character variable agegrp with values of "01", "02", "03", "04", "05", and "06". The value labels are 01: younger than 8, 02: age 9-12, 03: age 13-17, 04-06: adults. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do proc format for the variable, is there a quick way to do 04-06? Here is how I started:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt; value $&lt;SPAN style="font-size: 13.3333330154419px;"&gt;agegrp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp; "01"="younger than 8"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp; "02"="age 9-12"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp; "03"="age 13-17"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp; "04"="adult"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; "05"="adult"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp; "06"="adult";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Thanks a lot.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 17:27:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-format-for-consecutive-numbers-of-a-character-variable/m-p/181649#M46272</guid>
      <dc:creator>lizzy28</dc:creator>
      <dc:date>2015-02-25T17:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: proc format for consecutive numbers of a character variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-format-for-consecutive-numbers-of-a-character-variable/m-p/181650#M46273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what you are asking. Are you just looking for how to declare a range? If so,:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;value $agegrp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; "01"="younger than 8"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; "02"="age 9-12"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; "03"="age 13-17"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; "04"-"06"="adult";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 17:53:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-format-for-consecutive-numbers-of-a-character-variable/m-p/181650#M46273</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2015-02-25T17:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: proc format for consecutive numbers of a character variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-format-for-consecutive-numbers-of-a-character-variable/m-p/181651#M46274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Be very wary of defining ranges for character formats.&amp;nbsp; I would prefer to see a list of values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"04", "05", "06" = "adult"&lt;/P&gt;&lt;P&gt;If you define a range, here are some values that would fall into the "adult" classification:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"0500"&lt;/P&gt;&lt;P&gt;"04C"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That doesn't save you much on the typing so you have to decide if it's worth the trouble.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 18:12:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-format-for-consecutive-numbers-of-a-character-variable/m-p/181651#M46274</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-02-25T18:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: proc format for consecutive numbers of a character variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-format-for-consecutive-numbers-of-a-character-variable/m-p/181652#M46275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I overthought. I did "04"--"06"="adult" at the beginning. Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 18:31:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-format-for-consecutive-numbers-of-a-character-variable/m-p/181652#M46275</guid>
      <dc:creator>lizzy28</dc:creator>
      <dc:date>2015-02-25T18:31:42Z</dc:date>
    </item>
  </channel>
</rss>

