<?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: %scan not reading all characters in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/scan-not-reading-all-characters/m-p/879868#M347590</link>
    <description>&lt;P&gt;Specify that %scan should only use a blank, %str( ) as the delimiter, e.g.:&lt;/P&gt;
&lt;PRE&gt;1    %let formatlist=$2. 8. $6. $55. DATETIME19. DATETIME19. $1.  ;
2    %put %scan(&amp;amp;formatlist,4,%str( )) ;
$55.
&lt;/PRE&gt;</description>
    <pubDate>Fri, 09 Jun 2023 13:39:48 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2023-06-09T13:39:48Z</dc:date>
    <item>
      <title>%scan not reading all characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/scan-not-reading-all-characters/m-p/879867#M347589</link>
      <description>&lt;P&gt;I have a macro array of formats, however the %scan function is dropping the "$" and ".", how can I get %scan to read those characters?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;27 %put macro array of format values is &amp;amp;formats;&lt;BR /&gt;macro array of format values is $2. 8. $6. $55. DATETIME19. DATETIME19. $1.&lt;BR /&gt;28 %put fourth scanned format value is %scan(&amp;amp;formats,4);&lt;BR /&gt;fourth scanned format value is 55&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 13:35:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/scan-not-reading-all-characters/m-p/879867#M347589</guid>
      <dc:creator>Batman</dc:creator>
      <dc:date>2023-06-09T13:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: %scan not reading all characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/scan-not-reading-all-characters/m-p/879868#M347590</link>
      <description>&lt;P&gt;Specify that %scan should only use a blank, %str( ) as the delimiter, e.g.:&lt;/P&gt;
&lt;PRE&gt;1    %let formatlist=$2. 8. $6. $55. DATETIME19. DATETIME19. $1.  ;
2    %put %scan(&amp;amp;formatlist,4,%str( )) ;
$55.
&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 13:39:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/scan-not-reading-all-characters/m-p/879868#M347590</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-06-09T13:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: %scan not reading all characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/scan-not-reading-all-characters/m-p/879881#M347596</link>
      <description>&lt;P&gt;Read the friendly manual. The documentation for %scan includes this bit clearly showing that the $ character by default treated as a delimiter.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xis-eDocBody"&gt;
&lt;DIV class="xis-refDictEntry"&gt;
&lt;DIV class="xis-details"&gt;
&lt;DIV id="p1ak31rvg5xz6vn1hat80i9wbqpq" class="xis-topicContent"&gt;
&lt;DIV id="p0i0nkt0ue5msun1w1g29j9kxfhp" class="xis-paragraph"&gt;If you use the &lt;FONT style="background-color: #fcdec0;"&gt;%SCAN&lt;/FONT&gt; function with only two arguments, then the default delimiters depend on whether your computer uses ASCII or EBCDIC characters.
&lt;DIV class="xis-listUnordered"&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV id="n0igc9w9lmxjpyn14wpzkwf0immo" class="xis-item"&gt;
&lt;DIV id="p0uu756m3la9cnn1wgxnlzeet306" class="xis-paraSimpleFirst"&gt;If your computer uses ASCII characters, then the default delimiters are as follows:&lt;/DIV&gt;
&lt;DIV id="p1ak0140p505cpn1x57nl17u3kjp" class="xis-paraSimple"&gt;blank ! $ % &amp;amp; ( ) * + , - . / ; &amp;lt; ^¦&lt;/DIV&gt;
&lt;DIV id="n016tiy2bkbxs3n1rly8huot7me3" class="xis-paraSimple"&gt;In ASCII environments that do not contain the ^ character, the &lt;FONT style="background-color: #fcdec0;"&gt;%SCAN&lt;/FONT&gt; function uses the ~ character instead.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV id="n12s457yewkppvn11lgzakws7yvk" class="xis-item"&gt;
&lt;DIV id="n0f0dfi1kw4h9an1mhmar7udzmzq" class="xis-paraSimpleFirst"&gt;If your computer uses EBCDIC characters, then the default delimiters are as follows:&lt;/DIV&gt;
&lt;DIV id="p0a8dz8q4c3k1un1kjcuho4kjamc" class="xis-paraSimple"&gt;blank ! $ % &amp;amp; ( ) * + , - . / ; &amp;lt; ¬ | ¢¦&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&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>Fri, 09 Jun 2023 15:29:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/scan-not-reading-all-characters/m-p/879881#M347596</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-06-09T15:29:42Z</dc:date>
    </item>
  </channel>
</rss>

