<?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: parsing characters with prefix in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/parsing-characters-with-prefix/m-p/325611#M72435</link>
    <description>&lt;P&gt;Here is an example, I first pull out the numeric part (using compress keep digitis), then use this to replace in the original string a comma I then use for scan:&lt;/P&gt;
&lt;PRE&gt;data want;
  length theline $100;
  input theline $;  
  numeric_part=compress(theline,"","kd");
  theline=tranwrd(theline,strip(numeric_part),",");
  word1=scan(theline,1,",");
  word2=scan(theline,2,",");
datalines;
 xcode1130
tmun3340bf
;
run;&lt;/PRE&gt;</description>
    <pubDate>Wed, 18 Jan 2017 09:56:06 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-01-18T09:56:06Z</dc:date>
    <item>
      <title>parsing characters with prefix</title>
      <link>https://communities.sas.com/t5/SAS-Programming/parsing-characters-with-prefix/m-p/325596#M72427</link>
      <description>&lt;P&gt;As i have used the scan function to parse the string of characters . the modifier used like ' ' , - and so on. i need to parse them furthermore. data like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;xcode1130&lt;/P&gt;&lt;P&gt;tmun3340bf&lt;/P&gt;&lt;P&gt;i have no idea about how to parse them ,like this &amp;nbsp; &amp;nbsp; xcode 1130&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; &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; tmun 3340 bf &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; the characters didnot contain - . and other modifiers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you! &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;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 09:26:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/parsing-characters-with-prefix/m-p/325596#M72427</guid>
      <dc:creator>JNWong</dc:creator>
      <dc:date>2017-01-18T09:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: parsing characters with prefix</title>
      <link>https://communities.sas.com/t5/SAS-Programming/parsing-characters-with-prefix/m-p/325611#M72435</link>
      <description>&lt;P&gt;Here is an example, I first pull out the numeric part (using compress keep digitis), then use this to replace in the original string a comma I then use for scan:&lt;/P&gt;
&lt;PRE&gt;data want;
  length theline $100;
  input theline $;  
  numeric_part=compress(theline,"","kd");
  theline=tranwrd(theline,strip(numeric_part),",");
  word1=scan(theline,1,",");
  word2=scan(theline,2,",");
datalines;
 xcode1130
tmun3340bf
;
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Jan 2017 09:56:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/parsing-characters-with-prefix/m-p/325611#M72435</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-01-18T09:56:06Z</dc:date>
    </item>
  </channel>
</rss>

