<?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: how to include the delimiter  in the output value when scan function used in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-include-the-delimiter-in-the-output-value-when-scan/m-p/578221#M163947</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data two;
set one;
pos=find(a,'+');
b=substrn(a,1,pos);
c=substrn(a,pos+1);
drop pos;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 31 Jul 2019 20:24:27 GMT</pubDate>
    <dc:creator>r_behata</dc:creator>
    <dc:date>2019-07-31T20:24:27Z</dc:date>
    <item>
      <title>how to include the delimiter  in the output value when scan function used</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-include-the-delimiter-in-the-output-value-when-scan/m-p/578199#M163942</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;BR /&gt;&lt;BR /&gt;data one;
input a $10.;
datalines;
aaaa+bbbbb
cccc+ddddd
;
data two;
set one;
b=scan(a,1,'+');
c=scan(a,2,'+');
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Dear,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the above data step, i need to output for b and c vaiables as below.&amp;nbsp; The delimiter should also be included in first word. Please suggest.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;b&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c&lt;/P&gt;
&lt;P&gt;aaaa+&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bbbbb&lt;/P&gt;
&lt;P&gt;cccc+&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ddddd&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 19:42:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-include-the-delimiter-in-the-output-value-when-scan/m-p/578199#M163942</guid>
      <dc:creator>knveraraju91</dc:creator>
      <dc:date>2019-07-31T19:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to include the delimiter  in the output value when scan function used</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-include-the-delimiter-in-the-output-value-when-scan/m-p/578200#M163943</link>
      <description>b=cats(scan(a,1,'+'),'+');&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Jul 2019 19:45:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-include-the-delimiter-in-the-output-value-when-scan/m-p/578200#M163943</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2019-07-31T19:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to include the delimiter  in the output value when scan function used</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-include-the-delimiter-in-the-output-value-when-scan/m-p/578221#M163947</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data two;
set one;
pos=find(a,'+');
b=substrn(a,1,pos);
c=substrn(a,pos+1);
drop pos;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Jul 2019 20:24:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-include-the-delimiter-in-the-output-value-when-scan/m-p/578221#M163947</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2019-07-31T20:24:27Z</dc:date>
    </item>
  </channel>
</rss>

