<?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: Character Formatting - Use of space in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Character-Formatting-Use-of-space/m-p/125609#M34534</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Katie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"140" should not be in range.&amp;nbsp; That's the one puzzling part of the results.&amp;nbsp; Could it be that you had a slightly different string, such as "140." or "14O" instead of "140"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The extra blanks at the end would not normally make a difference.&amp;nbsp; Technically, there are some characters that are smaller than a blank, but you won't find them on the keyboard.&amp;nbsp; If such characters appear in the data, however, that extra blank would come into play.&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>Fri, 05 Jul 2013 22:45:10 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2013-07-05T22:45:10Z</dc:date>
    <item>
      <title>Character Formatting - Use of space</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Character-Formatting-Use-of-space/m-p/125604#M34529</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;&lt;/P&gt;&lt;P&gt;I am using an already established format program to create a format for specific character codes.&amp;nbsp; An example of the code is the following:&lt;/P&gt;&lt;P&gt;"1400 "-"1729 " = "TUMOR"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a couple of questions:&lt;/P&gt;&lt;P&gt;1) what is the purpose of the space (here, there is one after the 0 and after the 9).&amp;nbsp; I thought it could be a wildcard, but did not see any documentation about this.&amp;nbsp; Also, I has always used a ":" in the past if I needed a wildcard feature...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) I am getting the code "140" to format as "TUMOR"&amp;nbsp; I am wondering if this should be the case, and if it is related to the spaces in the range provided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts would be helpful - thanks!&lt;/P&gt;&lt;P&gt;-Katie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2013 19:52:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Character-Formatting-Use-of-space/m-p/125604#M34529</guid>
      <dc:creator>kathryn_jackson1_northwestern_edu</dc:creator>
      <dc:date>2013-07-02T19:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Character Formatting - Use of space</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Character-Formatting-Use-of-space/m-p/125605#M34530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Spaces should have no effect.&lt;/P&gt;&lt;P&gt;Note that ranges in character formats are defined lexigraphically.&lt;/P&gt;&lt;P&gt;Note that '15' would be in your list because it is between '1400' and '1729' because the first digits are the same and '5' is between '4' and '7'.&lt;/P&gt;&lt;P&gt;Also '14500' would be in your list because the code for '5' is after the code for '0' and the code for '4' is before the code for '7'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 01:41:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Character-Formatting-Use-of-space/m-p/125605#M34530</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-07-03T01:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Character Formatting - Use of space</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Character-Formatting-Use-of-space/m-p/125606#M34531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Tom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in this case, should '140' also be within the range?&amp;nbsp; That would suggest that 140=1400, right? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;-Katie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 15:08:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Character-Formatting-Use-of-space/m-p/125606#M34531</guid>
      <dc:creator>kathryn_jackson1_northwestern_edu</dc:creator>
      <dc:date>2013-07-03T15:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Character Formatting - Use of space</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Character-Formatting-Use-of-space/m-p/125607#M34532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;In you example I understood why 15 will be in the list of the range 1400-1728&lt;/P&gt;&lt;P&gt;But I dint understand why 14500 will be also be included in that range???????&lt;/P&gt;&lt;P&gt;Could you explain one more time please??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 20:59:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Character-Formatting-Use-of-space/m-p/125607#M34532</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2013-07-03T20:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Character Formatting - Use of space</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Character-Formatting-Use-of-space/m-p/125608#M34533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps if you convert the digits to letters it will be clearer. Or better yet let SAS do it for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; length x low high $8;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input x low high ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; between = (low &amp;lt;= x &amp;lt;= high);&lt;/P&gt;&lt;P&gt;&amp;nbsp; put (x low high between) (=);&lt;/P&gt;&lt;P&gt;&amp;nbsp; x&amp;nbsp;&amp;nbsp; = translate(x,'ABCEDEFGHI','0123456789');&lt;/P&gt;&lt;P&gt;&amp;nbsp; low = translate(low,'ABCEDEFGHI','0123456789');&lt;/P&gt;&lt;P&gt;&amp;nbsp; high = translate(high,'ABCEDEFGHI','0123456789');&lt;/P&gt;&lt;P&gt;&amp;nbsp; put (x low high between) (=);&lt;/P&gt;&lt;P&gt;&amp;nbsp; put;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;14500 1400 1700&lt;/P&gt;&lt;P&gt;140 1400 1700&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x=14500 low=1400 high=1700 between=1&lt;/P&gt;&lt;P&gt;x=BDEAA low=BDAA high=BGAA between=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x=140 low=1400 high=1700 between=0&lt;/P&gt;&lt;P&gt;x=BDA low=BDAA high=BGAA between=0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 21:36:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Character-Formatting-Use-of-space/m-p/125608#M34533</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-07-03T21:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Character Formatting - Use of space</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Character-Formatting-Use-of-space/m-p/125609#M34534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Katie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"140" should not be in range.&amp;nbsp; That's the one puzzling part of the results.&amp;nbsp; Could it be that you had a slightly different string, such as "140." or "14O" instead of "140"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The extra blanks at the end would not normally make a difference.&amp;nbsp; Technically, there are some characters that are smaller than a blank, but you won't find them on the keyboard.&amp;nbsp; If such characters appear in the data, however, that extra blank would come into play.&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>Fri, 05 Jul 2013 22:45:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Character-Formatting-Use-of-space/m-p/125609#M34534</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2013-07-05T22:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Character Formatting - Use of space</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Character-Formatting-Use-of-space/m-p/125610#M34535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your help.&amp;nbsp; You are right, 140 should not be picked up by the format.&amp;nbsp; Thanks for the information on the blanks, and that characters could be smaller than a blank.&amp;nbsp; I think what I was missing here was that a blank value is actually less than a 0 (correct?), and therefore in the above code, 14 would not be in the range, but 15 would.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for all of your help!&lt;/P&gt;&lt;P&gt;-Katie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 13:59:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Character-Formatting-Use-of-space/m-p/125610#M34535</guid>
      <dc:creator>kathryn_jackson1_northwestern_edu</dc:creator>
      <dc:date>2013-07-08T13:59:06Z</dc:date>
    </item>
  </channel>
</rss>

