<?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: A Question on scan / or some function to in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/A-Question-on-scan-or-some-function-to/m-p/150465#M39678</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;infile cards truncover;&lt;/P&gt;&lt;P&gt;input comment $250. ;&lt;/P&gt;&lt;P&gt;datalines4;&lt;/P&gt;&lt;P&gt;:Cutting Device Failure : Cannot Insert Cutter;:Cutting Device Failure : Component Damaged;:Cleaning Device Failure : Vibration;&lt;/P&gt;&lt;P&gt;;;;;&lt;/P&gt;&lt;P&gt;proc print;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;su1=scan(comment,1,";");&lt;/P&gt;&lt;P&gt;su2=scan(comment,2,";");&lt;/P&gt;&lt;P&gt;su3=scan(comment, 3,";");&lt;/P&gt;&lt;P&gt;%macro abc;&lt;/P&gt;&lt;P&gt;%do i=1 %to 3;&lt;/P&gt;&lt;P&gt;&amp;nbsp; su&amp;amp;i=substr(su&amp;amp;i,2);&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;%abc;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Oct 2014 04:03:48 GMT</pubDate>
    <dc:creator>bharathtuppad</dc:creator>
    <dc:date>2014-10-31T04:03:48Z</dc:date>
    <item>
      <title>A Question on scan / or some function to</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-Question-on-scan-or-some-function-to/m-p/150458#M39671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I Have a character variable (Comment) with the following value:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Comment&lt;BR /&gt;----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Pitney : Cutting Device Failure : Cannot Insert Cutter; Pitney : Cutting Device Failure : Component Damaged; Houston : Cleaning Device Failure : Vibration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need to create three charactert variables (SU1, SU2, SU3) from the varaible - Comment as every&amp;nbsp; new varaible starts after first&amp;nbsp; ":" and ends before ";". The next&lt;/P&gt;&lt;P&gt;variable starts after ";" and the first ":" and ends before ";".&amp;nbsp; and goes on.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result dataset wither new variables should be as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SU1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SU2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SU3&lt;BR /&gt;-------------------------------------------------------------&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----------------------------------------------------------------&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ---------------------------------------------------&lt;BR /&gt;Cutting Device Failure : Cannot Insert Cutter&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cutting Device Failure : Component Damaged&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cleaning Device Failure : Vibration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 19:23:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-Question-on-scan-or-some-function-to/m-p/150458#M39671</guid>
      <dc:creator>need_sas_help</dc:creator>
      <dc:date>2014-10-30T19:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: A Question on scan / or some function to</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-Question-on-scan-or-some-function-to/m-p/150459#M39672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SU1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Scan(Comment,1,';') ;&lt;/P&gt;&lt;P&gt;SU2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Scan(Comment,2,';') ;&lt;/P&gt;&lt;P&gt;SU3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Scan(Comment,3,';') ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, I have not checked the syntax completely, so some tweaking may be required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 19:27:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-Question-on-scan-or-some-function-to/m-p/150459#M39672</guid>
      <dc:creator>LionelT</dc:creator>
      <dc:date>2014-10-30T19:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: A Question on scan / or some function to</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-Question-on-scan-or-some-function-to/m-p/150460#M39673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot LionIT for you code. But it doesn't solve the main complexity I am facing:&lt;/P&gt;&lt;P&gt;charactert variables (SU1, SU2, SU3) from the varaible - Comment as every&amp;nbsp; new varaible starts &lt;STRONG&gt;after first&amp;nbsp; ":"&lt;/STRONG&gt; and &lt;STRONG&gt;ends before ";"&lt;/STRONG&gt;. The &lt;STRONG&gt;next&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;variable starts after ";"&lt;/STRONG&gt; &lt;STRONG&gt;and the first ":"&lt;/STRONG&gt; and ends before ";".&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 19:40:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-Question-on-scan-or-some-function-to/m-p/150460#M39673</guid>
      <dc:creator>need_sas_help</dc:creator>
      <dc:date>2014-10-30T19:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: A Question on scan / or some function to</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-Question-on-scan-or-some-function-to/m-p/150461#M39674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry about that...missed the 'Pitney' piece....or should I say&amp;nbsp; 'Pitney' I didn't read the whole note!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SU1, SU2 and SU3 after the first piece of code would now contain the desired comments other than the extra 'Pitney :' at the start.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, we need to substr starting at the position afer the ':' to the end of hte string. The end piece would be SU1 = Substr(SU1, startinglocationtobedetermined, length(SU1)-Startinglocationtobedetermined) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For startinglocationtobedetermined insert the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indexc(SU1,':')+1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 19:50:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-Question-on-scan-or-some-function-to/m-p/150461#M39674</guid>
      <dc:creator>LionelT</dc:creator>
      <dc:date>2014-10-30T19:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: A Question on scan / or some function to</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-Question-on-scan-or-some-function-to/m-p/150462#M39675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="-1" data-externalid="" data-presence="null" data-userid="849345" data-username="LionelT" href="https://communities.sas.com/people/LionelT" id="jive-84934530078615982614186"&gt;LionelT&lt;/A&gt; . Not famliar with the code you just provided. Not too clear too me. If you have a minute to spare would you be kind enough to provide the exact code? Sorry I have failed to follow this instruction. Please help me.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 19:53:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-Question-on-scan-or-some-function-to/m-p/150462#M39675</guid>
      <dc:creator>need_sas_help</dc:creator>
      <dc:date>2014-10-30T19:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: A Question on scan / or some function to</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-Question-on-scan-or-some-function-to/m-p/150463#M39676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's two ways. The second relies on your fixed structure as in the example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;var="Pitney : Cutting Device Failure : Cannot Insert Cutter; Pitney : Cutting Device Failure : Component Damaged; Houston : Cleaning Device Failure : Vibration";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*separate out into parts by semicolon;&lt;/P&gt;&lt;P&gt;temp1=scan(var, 1, ";");&lt;/P&gt;&lt;P&gt;temp2=scan(var, 2, ";");&lt;/P&gt;&lt;P&gt;temp3=scan(var, 3, ";");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Substring remaining variable by finding the first colon delimiter;&lt;/P&gt;&lt;P&gt;var1=substr(temp1, find(temp1, ":")+2);&lt;/P&gt;&lt;P&gt;var2=substr(temp2, find(temp2, ":")+2);&lt;/P&gt;&lt;P&gt;var3=substr(temp3, find(temp3, ":")+2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*keep var1-var3;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*A different option by scanning into component parts and then concatenating them together;&lt;/P&gt;&lt;P&gt;data want2;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*separate out into parts by semicolon;&lt;/P&gt;&lt;P&gt;var1=catx(":", scan(var, 2, ";:"), scan(var, 3, ";:")) ;&lt;/P&gt;&lt;P&gt;var2=catx(":", scan(var, 5, ";:"), scan(var, 6, ";:")) ;&lt;/P&gt;&lt;P&gt;var3=catx(":", scan(var, 8, ";:"), scan(var, 9, ";:")) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;keep var1-var3;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 20:17:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-Question-on-scan-or-some-function-to/m-p/150463#M39676</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-10-30T20:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: A Question on scan / or some function to</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-Question-on-scan-or-some-function-to/m-p/150464#M39677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want(keep=comment su:);&lt;/P&gt;&lt;P&gt;&amp;nbsp; length comment test $ 200;&lt;/P&gt;&lt;P&gt;&amp;nbsp; array su{3} $ 200;&lt;/P&gt;&lt;P&gt;&amp;nbsp; comment="Pitney : Cutting Device Failure : Cannot Insert Cutter; Pitney : Cutting Device Failure : Component Damaged; Houston : Cleaning Device Failure : Vibration";&lt;/P&gt;&lt;P&gt;&amp;nbsp; test=cats(comment,';');&lt;/P&gt;&lt;P&gt;&amp;nbsp; l=length(test);&lt;/P&gt;&lt;P&gt;&amp;nbsp; do n=1 to 3 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from=index(test,':');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if from=0 then leave;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to=index(test,';');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if to=0 then to=l;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; su{n}=cats(substr(test,from+1,to-from-1));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; test=substr(test,to+1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; l=l-to;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CTorres&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 20:21:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-Question-on-scan-or-some-function-to/m-p/150464#M39677</guid>
      <dc:creator>CTorres</dc:creator>
      <dc:date>2014-10-30T20:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: A Question on scan / or some function to</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-Question-on-scan-or-some-function-to/m-p/150465#M39678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;infile cards truncover;&lt;/P&gt;&lt;P&gt;input comment $250. ;&lt;/P&gt;&lt;P&gt;datalines4;&lt;/P&gt;&lt;P&gt;:Cutting Device Failure : Cannot Insert Cutter;:Cutting Device Failure : Component Damaged;:Cleaning Device Failure : Vibration;&lt;/P&gt;&lt;P&gt;;;;;&lt;/P&gt;&lt;P&gt;proc print;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;su1=scan(comment,1,";");&lt;/P&gt;&lt;P&gt;su2=scan(comment,2,";");&lt;/P&gt;&lt;P&gt;su3=scan(comment, 3,";");&lt;/P&gt;&lt;P&gt;%macro abc;&lt;/P&gt;&lt;P&gt;%do i=1 %to 3;&lt;/P&gt;&lt;P&gt;&amp;nbsp; su&amp;amp;i=substr(su&amp;amp;i,2);&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;%abc;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 04:03:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-Question-on-scan-or-some-function-to/m-p/150465#M39678</guid>
      <dc:creator>bharathtuppad</dc:creator>
      <dc:date>2014-10-31T04:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: A Question on scan / or some function to</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-Question-on-scan-or-some-function-to/m-p/150466#M39679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why would you use macro looping here? Use an array instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;data want;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;set have;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;arrray su(3) $ su1-su3;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;do i=1 to 3;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;su(i)=scan(comment,i,";");&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; su(i)=substr(su(i),2);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;end;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc print;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 11:46:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-Question-on-scan-or-some-function-to/m-p/150466#M39679</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-10-31T11:46:26Z</dc:date>
    </item>
  </channel>
</rss>

