<?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 How to use scan in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-scan/m-p/638000#M189709</link>
    <description>Cards;&lt;BR /&gt;Rama chandra Vikas murthy&lt;BR /&gt;V v s lakshman&lt;BR /&gt;Siva sanker Prasad Kumar&lt;BR /&gt;Guru' Prasad&lt;BR /&gt;Guru' raaj gopal govind dasu&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;I want output like this&lt;BR /&gt;First_name: first'word&lt;BR /&gt;Last_name: last word&lt;BR /&gt;Middle name:all the words apart from first name and last name</description>
    <pubDate>Tue, 07 Apr 2020 07:46:27 GMT</pubDate>
    <dc:creator>PurushReddy</dc:creator>
    <dc:date>2020-04-07T07:46:27Z</dc:date>
    <item>
      <title>How to use scan</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-scan/m-p/638000#M189709</link>
      <description>Cards;&lt;BR /&gt;Rama chandra Vikas murthy&lt;BR /&gt;V v s lakshman&lt;BR /&gt;Siva sanker Prasad Kumar&lt;BR /&gt;Guru' Prasad&lt;BR /&gt;Guru' raaj gopal govind dasu&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;I want output like this&lt;BR /&gt;First_name: first'word&lt;BR /&gt;Last_name: last word&lt;BR /&gt;Middle name:all the words apart from first name and last name</description>
      <pubDate>Tue, 07 Apr 2020 07:46:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-scan/m-p/638000#M189709</guid>
      <dc:creator>PurushReddy</dc:creator>
      <dc:date>2020-04-07T07:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use scan</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-scan/m-p/638003#M189712</link>
      <description>&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p0jshdjy2z9zdzn1h7k90u99lyq6.htm&amp;amp;locale=en" target="_self"&gt;SCAN Function&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Scan() with 1 gets you the first, scan() with -1 the last word.&lt;/P&gt;
&lt;P&gt;All others can be extracted in a do loop from 2 to countw() - 1.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 08:33:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-scan/m-p/638003#M189712</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-07T08:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to use scan</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-scan/m-p/638022#M189724</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input x $40.;
call scan(x,1,p1,l1,' ');
call scan(x,-1,p2,l2,' ');
first=substr(x,1,l1);
last=substr(x,p2);
middle=substr(x,l1+1,p2-l1-1);
Cards;
Rama chandra Vikas murthy
V v s lakshman
Siva sanker Prasad Kumar
Guru' Prasad
Guru' raaj gopal govind dasu
;

proc print;run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Apr 2020 11:32:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-scan/m-p/638022#M189724</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-04-07T11:32:46Z</dc:date>
    </item>
  </channel>
</rss>

