<?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 ordered character ranges with gplot in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ordered-character-ranges-with-gplot/m-p/1401#M432</link>
    <description>This is irritatingly simple, but I can't get it. &lt;BR /&gt;
&lt;BR /&gt;
I have a continuous variable (age) that I have created categorical ranges for. &lt;BR /&gt;
Partial follows:&lt;BR /&gt;
&lt;BR /&gt;
IF REALAGE &amp;lt;= 3 THEN AGERANGE = "0-3";&lt;BR /&gt;
ELSE IF 3 &amp;lt;= REALAGE AND REALAGE &amp;lt;= 5 THEN AGERANGE = "3-5"; &lt;BR /&gt;
ELSE IF 5 &amp;lt;= REALAGE AND REALAGE &amp;lt;= 8 THEN AGERANGE = "5-8" ;&lt;BR /&gt;
ELSE IF 8 &amp;lt;= REALAGE AND REALAGE &amp;lt;= 11 THEN AGERANGE = "8-11";&lt;BR /&gt;
ELSE IF 11 &amp;lt;= REALAGE AND REALAGE &amp;lt;= 14 THEN AGERANGE = "11-14" ;&lt;BR /&gt;
&lt;BR /&gt;
I am plotting a single value per agerange with gplot in SASEG. I WANT the horizontal axis to read as it should (i.e. 0-3, 3-5, 5-8, 8-11, 11-14) instead it plots it out as (i.e. 0-3, 11-14, 3-5, 5-8, 8-11). &lt;BR /&gt;
&lt;BR /&gt;
I have tried inserting proc format with the insert code option, no good. &lt;BR /&gt;
&lt;BR /&gt;
Thoughts?</description>
    <pubDate>Thu, 14 Sep 2006 15:06:27 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2006-09-14T15:06:27Z</dc:date>
    <item>
      <title>ordered character ranges with gplot</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ordered-character-ranges-with-gplot/m-p/1401#M432</link>
      <description>This is irritatingly simple, but I can't get it. &lt;BR /&gt;
&lt;BR /&gt;
I have a continuous variable (age) that I have created categorical ranges for. &lt;BR /&gt;
Partial follows:&lt;BR /&gt;
&lt;BR /&gt;
IF REALAGE &amp;lt;= 3 THEN AGERANGE = "0-3";&lt;BR /&gt;
ELSE IF 3 &amp;lt;= REALAGE AND REALAGE &amp;lt;= 5 THEN AGERANGE = "3-5"; &lt;BR /&gt;
ELSE IF 5 &amp;lt;= REALAGE AND REALAGE &amp;lt;= 8 THEN AGERANGE = "5-8" ;&lt;BR /&gt;
ELSE IF 8 &amp;lt;= REALAGE AND REALAGE &amp;lt;= 11 THEN AGERANGE = "8-11";&lt;BR /&gt;
ELSE IF 11 &amp;lt;= REALAGE AND REALAGE &amp;lt;= 14 THEN AGERANGE = "11-14" ;&lt;BR /&gt;
&lt;BR /&gt;
I am plotting a single value per agerange with gplot in SASEG. I WANT the horizontal axis to read as it should (i.e. 0-3, 3-5, 5-8, 8-11, 11-14) instead it plots it out as (i.e. 0-3, 11-14, 3-5, 5-8, 8-11). &lt;BR /&gt;
&lt;BR /&gt;
I have tried inserting proc format with the insert code option, no good. &lt;BR /&gt;
&lt;BR /&gt;
Thoughts?</description>
      <pubDate>Thu, 14 Sep 2006 15:06:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ordered-character-ranges-with-gplot/m-p/1401#M432</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-09-14T15:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: ordered character ranges with gplot</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ordered-character-ranges-with-gplot/m-p/1402#M433</link>
      <description>Hi,&lt;BR /&gt;
  There are several different ways to do this. The easiest &lt;B&gt;might&lt;/B&gt; be to insert a leading space before the single digit ranges. [pre]&lt;BR /&gt;
IF REALAGE &amp;lt;= 3 THEN AGERANGE =  " 0-3";&lt;BR /&gt;
ELSE IF 3 &amp;lt;= REALAGE AND REALAGE &amp;lt;= 5 THEN AGERANGE =   " 3-5"; &lt;BR /&gt;
ELSE IF 5 &amp;lt;= REALAGE AND REALAGE &amp;lt;= 8 THEN AGERANGE =   " 5-8" ;&lt;BR /&gt;
ELSE IF 8 &amp;lt;= REALAGE AND REALAGE &amp;lt;= 11 THEN AGERANGE =  " 8-11";&lt;BR /&gt;
ELSE IF 11 &amp;lt;= REALAGE AND REALAGE &amp;lt;= 14 THEN AGERANGE = "11-14" ;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
you may also need a length statement so the AGERANGE variable does not get truncated:&lt;BR /&gt;
[pre]&lt;BR /&gt;
length agerange $5;[/pre]&lt;BR /&gt;
  For more about the other ways to do ordering, you could contact Tech Support.&lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 14 Sep 2006 20:08:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ordered-character-ranges-with-gplot/m-p/1402#M433</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2006-09-14T20:08:39Z</dc:date>
    </item>
  </channel>
</rss>

