<?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: Question on intervals in VALUE-statement in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Question-on-intervals-in-VALUE-statement/m-p/558558#M10116</link>
    <description>&lt;P&gt;The syntax of the code was incorrect , the correct syntax is as below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We create the formats to change the display of the data, if you just want to display the values as is then do not apply the format. The format controls the display of the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format lib=sasuser;
value tempc low -&amp;lt; 0 = 'BELOW FREEZING'
0 -&amp;lt; 5 = 'COLD'
5 -&amp;lt; 10 = 'MILD'
10 -&amp;lt; 15 = 'WARM'
15 - high = 'HOT';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 14 May 2019 08:16:29 GMT</pubDate>
    <dc:creator>Jagadishkatam</dc:creator>
    <dc:date>2019-05-14T08:16:29Z</dc:date>
    <item>
      <title>Question on intervals in VALUE-statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Question-on-intervals-in-VALUE-statement/m-p/558555#M10115</link>
      <description>&lt;P&gt;I copied this code of a practice question, the question is that value will be assigned to 10, which is seemingly between the "warm" and "hot" temperature ranges.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format lib=sasuser;
value tempc low&amp;lt; 0 = 'BELOW FREEZING'
0 &amp;lt; 5 = 'COLD'
5 &amp;lt; 10 = 'MILD'
10 &amp;lt; 15 = 'WARM'
15 &amp;lt; high = 'HOT';
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Intuitively, it seems that 10 is assigned no format and should be presented just as 10. But not only does the key claim 10 will be presented as "WARM", the code refuses to run on my system!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS tells me the "&amp;lt;" signts is not recognized and will be ignored(!).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question 1:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why on earth would 10 be presented as 'WARM' and not as 10, is this another typo?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question 2:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why does the code fail to run? I double checked with the advanced programmer's prep guide and this seems to be the way to assign a format to an interval....&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;asdf&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 07:55:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Question-on-intervals-in-VALUE-statement/m-p/558555#M10115</guid>
      <dc:creator>Syntas_error</dc:creator>
      <dc:date>2019-05-14T07:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Question on intervals in VALUE-statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Question-on-intervals-in-VALUE-statement/m-p/558558#M10116</link>
      <description>&lt;P&gt;The syntax of the code was incorrect , the correct syntax is as below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We create the formats to change the display of the data, if you just want to display the values as is then do not apply the format. The format controls the display of the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format lib=sasuser;
value tempc low -&amp;lt; 0 = 'BELOW FREEZING'
0 -&amp;lt; 5 = 'COLD'
5 -&amp;lt; 10 = 'MILD'
10 -&amp;lt; 15 = 'WARM'
15 - high = 'HOT';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 May 2019 08:16:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Question-on-intervals-in-VALUE-statement/m-p/558558#M10116</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-05-14T08:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Question on intervals in VALUE-statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Question-on-intervals-in-VALUE-statement/m-p/558566#M10117</link>
      <description>&lt;P&gt;So in summary:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. We have to use the "-&amp;lt;"-sign instead of the ""&amp;lt;"-sign when specifying intervals.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Forr some unknown reason we can't use an "-&amp;lt;"-sign before "high" but must use the "-"-sign instead?&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 09:04:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Question-on-intervals-in-VALUE-statement/m-p/558566#M10117</guid>
      <dc:creator>Syntas_error</dc:creator>
      <dc:date>2019-05-14T09:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Question on intervals in VALUE-statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Question-on-intervals-in-VALUE-statement/m-p/558568#M10118</link>
      <description>Yes I agree with your understanding. &lt;BR /&gt;When we use the words like low or high, it is implicit they refer to lower or higher values hence we do not need the '&amp;lt;'  symbol.</description>
      <pubDate>Tue, 14 May 2019 09:08:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Question-on-intervals-in-VALUE-statement/m-p/558568#M10118</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-05-14T09:08:59Z</dc:date>
    </item>
  </channel>
</rss>

