<?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: CALL SCAN in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/CALL-SCAN/m-p/803761#M316495</link>
    <description>&lt;P&gt;CLL SCAN is probably the routine that gets called from the SCAN function. It can be useful to call explicitly when&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;You are scanning all the words in a list e.g.&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;do i=1 to countw(string);
  w=scan(string,i);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;The list (the STRING variable in the example above) is long and performance is important. You can then change the code to something like&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Pos=1;
len=0;
do while(1);
  call scan(String,1,Pos,len);&lt;BR /&gt;  if pos=0 then leave;
  w=substr(String,Pos,len);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;pos=pos+len;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;The code is a bit more complicated, so it is only something you should use when performance really matters.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Mar 2022 10:03:59 GMT</pubDate>
    <dc:creator>s_lassen</dc:creator>
    <dc:date>2022-03-24T10:03:59Z</dc:date>
    <item>
      <title>CALL SCAN</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CALL-SCAN/m-p/803738#M316480</link>
      <description>Hi,&lt;BR /&gt;Can anyone give bref about CALL SCAN function</description>
      <pubDate>Thu, 24 Mar 2022 05:56:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CALL-SCAN/m-p/803738#M316480</guid>
      <dc:creator>PurushReddy</dc:creator>
      <dc:date>2022-03-24T05:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: CALL SCAN</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CALL-SCAN/m-p/803740#M316481</link>
      <description>&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/n0ecxfx00bn8i4n1vhh8up24ha6x.htm" target="_blank" rel="noopener"&gt;CALL SCAN &lt;EM&gt;Routine&lt;/EM&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 06:29:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CALL-SCAN/m-p/803740#M316481</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-03-24T06:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: CALL SCAN</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CALL-SCAN/m-p/803761#M316495</link>
      <description>&lt;P&gt;CLL SCAN is probably the routine that gets called from the SCAN function. It can be useful to call explicitly when&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;You are scanning all the words in a list e.g.&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;do i=1 to countw(string);
  w=scan(string,i);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;The list (the STRING variable in the example above) is long and performance is important. You can then change the code to something like&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Pos=1;
len=0;
do while(1);
  call scan(String,1,Pos,len);&lt;BR /&gt;  if pos=0 then leave;
  w=substr(String,Pos,len);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;pos=pos+len;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;The code is a bit more complicated, so it is only something you should use when performance really matters.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 10:03:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CALL-SCAN/m-p/803761#M316495</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2022-03-24T10:03:59Z</dc:date>
    </item>
  </channel>
</rss>

