<?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: Unintentional other range got created when using a dataset as input to proc format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Unintentional-other-range-got-created-when-using-a-dataset-as/m-p/399740#M96847</link>
    <description>&lt;P&gt;Hi KurtBremser&lt;/P&gt;&lt;P&gt;"other" is not a keyword, rather other (without quote) is, i.e. there would differences between the formats created by the following examples:&lt;/P&gt;&lt;P&gt;****Example 1****;&lt;/P&gt;&lt;P&gt;proc format;&lt;BR /&gt;value $test1a&lt;BR /&gt;'other'=error&lt;BR /&gt;'test'=OK;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;****Example 2****;&lt;/P&gt;&lt;P&gt;proc format;&lt;BR /&gt;value $test1a&lt;BR /&gt;other=error&lt;BR /&gt;test=OK;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I have using a dataset without specifying HLO='O', so 'other' should be consider as a text string like in Example 1 above.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Sep 2017 11:10:27 GMT</pubDate>
    <dc:creator>vicp</dc:creator>
    <dc:date>2017-09-29T11:10:27Z</dc:date>
    <item>
      <title>Unintentional other range got created when using a dataset as input to proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unintentional-other-range-got-created-when-using-a-dataset-as/m-p/399735#M96844</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anybody tell me if the following behaviour is intended or not:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a format ($test2b) with the following dataset (created with datalines to simulate real data), with the expectation that the format will contain 2 values - 'other' and 'test'.&amp;nbsp;Instead, the resulting format has only 1 value 'test' plus an other range (see image below)!&amp;nbsp; I could circumvent the issue by adding hlo=' '&amp;nbsp; to all records, just don't think this has been mentioned anywhere in the documentation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; fmt1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; infile datalines dlm=' ';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; length start label $&lt;STRONG&gt;32&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; input start label;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; fmtname='$test2b';&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;other error&lt;/P&gt;&lt;P&gt;test ok&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;format&lt;/STRONG&gt; cntlin=fmt1;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="otherrange.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15494i846C1F59E8DEB611/image-size/large?v=v2&amp;amp;px=999" role="button" title="otherrange.png" alt="otherrange.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;V&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 11:01:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unintentional-other-range-got-created-when-using-a-dataset-as/m-p/399735#M96844</guid>
      <dc:creator>vicp</dc:creator>
      <dc:date>2017-09-29T11:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Unintentional other range got created when using a dataset as input to proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unintentional-other-range-got-created-when-using-a-dataset-as/m-p/399737#M96845</link>
      <description>&lt;P&gt;"other" is a keyword when creating formats. A pseudo-value of "other" covers all values not dealt with by the other entries.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 11:04:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unintentional-other-range-got-created-when-using-a-dataset-as/m-p/399737#M96845</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-09-29T11:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unintentional other range got created when using a dataset as input to proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unintentional-other-range-got-created-when-using-a-dataset-as/m-p/399740#M96847</link>
      <description>&lt;P&gt;Hi KurtBremser&lt;/P&gt;&lt;P&gt;"other" is not a keyword, rather other (without quote) is, i.e. there would differences between the formats created by the following examples:&lt;/P&gt;&lt;P&gt;****Example 1****;&lt;/P&gt;&lt;P&gt;proc format;&lt;BR /&gt;value $test1a&lt;BR /&gt;'other'=error&lt;BR /&gt;'test'=OK;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;****Example 2****;&lt;/P&gt;&lt;P&gt;proc format;&lt;BR /&gt;value $test1a&lt;BR /&gt;other=error&lt;BR /&gt;test=OK;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I have using a dataset without specifying HLO='O', so 'other' should be consider as a text string like in Example 1 above.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 11:10:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unintentional-other-range-got-created-when-using-a-dataset-as/m-p/399740#M96847</guid>
      <dc:creator>vicp</dc:creator>
      <dc:date>2017-09-29T11:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unintentional other range got created when using a dataset as input to proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unintentional-other-range-got-created-when-using-a-dataset-as/m-p/399756#M96852</link>
      <description>&lt;P&gt;If you want more confidence that "other" won't be treated as a keyword, add this to your DATA step:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hlo=' ';&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 12:35:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unintentional-other-range-got-created-when-using-a-dataset-as/m-p/399756#M96852</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-09-29T12:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Unintentional other range got created when using a dataset as input to proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unintentional-other-range-got-created-when-using-a-dataset-as/m-p/401269#M97339</link>
      <description>&lt;P&gt;Got an official reply from SAS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="procformat.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15631i019CB48AB74B0180/image-size/large?v=v2&amp;amp;px=999" role="button" title="procformat.PNG" alt="procformat.PNG" /&gt;&lt;/span&gt;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 10:15:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unintentional-other-range-got-created-when-using-a-dataset-as/m-p/401269#M97339</guid>
      <dc:creator>vicp</dc:creator>
      <dc:date>2017-10-05T10:15:21Z</dc:date>
    </item>
  </channel>
</rss>

