<?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: Informat for a range of values in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Informat-for-a-range-of-values/m-p/266983#M7384</link>
    <description>&lt;P&gt;There is no range informat; &amp;nbsp;SAS is built to hold one data item per variable.&lt;/P&gt;
&lt;PRE&gt;data want;
  infile datalines dlm="-" missover;
  input min max;
datalines;
1
2
43
781
226-250
770-821
;
run;&lt;/PRE&gt;
&lt;P&gt;You can then access the individual data items by variable name, so range is variable min, and variable max.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Apr 2016 15:05:20 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-04-28T15:05:20Z</dc:date>
    <item>
      <title>Informat for a range of values</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Informat-for-a-range-of-values/m-p/266975#M7383</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a beginner. Want to know the informat for a range of values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g in the input variable column, I have numbers, then few ranges:&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;43&lt;/P&gt;&lt;P&gt;781&lt;/P&gt;&lt;P&gt;226-250&lt;/P&gt;&lt;P&gt;770-821&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;900-921.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I do data cleaning, the last ranges get converted into '.'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 14:50:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Informat-for-a-range-of-values/m-p/266975#M7383</guid>
      <dc:creator>Antaralib</dc:creator>
      <dc:date>2016-04-28T14:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Informat for a range of values</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Informat-for-a-range-of-values/m-p/266983#M7384</link>
      <description>&lt;P&gt;There is no range informat; &amp;nbsp;SAS is built to hold one data item per variable.&lt;/P&gt;
&lt;PRE&gt;data want;
  infile datalines dlm="-" missover;
  input min max;
datalines;
1
2
43
781
226-250
770-821
;
run;&lt;/PRE&gt;
&lt;P&gt;You can then access the individual data items by variable name, so range is variable min, and variable max.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 15:05:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Informat-for-a-range-of-values/m-p/266983#M7384</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-04-28T15:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Informat for a range of values</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Informat-for-a-range-of-values/m-p/266992#M7385</link>
      <description>&lt;P&gt;You may need to desribe a bit more of what you are actually doing or want to do with this variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the data is coming to you as shown are you attempting to check membership in a range: is this value in the range of 900-921? Or is the data recorded as "900-921" and you want to assign a specific value? Is the variable supposed to be numeric (something you would do arithmetic with or calculate means and such) or a category indicator (where text is perfectly fine)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the value is supposed to be numeric you would have to decide on a single value to represent the range. A custom informat could be used to read the data and assign that value, or you could recode the raw value into another variable with the desired value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 15:27:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Informat-for-a-range-of-values/m-p/266992#M7385</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-04-28T15:27:44Z</dc:date>
    </item>
  </channel>
</rss>

