<?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: subtring on a variable length field in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/subtring-on-a-variable-length-field/m-p/462706#M117832</link>
    <description>thank you!</description>
    <pubDate>Wed, 16 May 2018 13:58:59 GMT</pubDate>
    <dc:creator>myboys2</dc:creator>
    <dc:date>2018-05-16T13:58:59Z</dc:date>
    <item>
      <title>subtring on a variable length field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/subtring-on-a-variable-length-field/m-p/462698#M117826</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am looking to grab the first few positions of a field before the '*" but as you can see the * is not in the same position of every record. I just want what is BEFORE the *&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below are sample records - not sure if a substring would work and if so how?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;card id&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;12345*companyname&lt;/P&gt;
&lt;P&gt;1234*companyname&lt;/P&gt;
&lt;P&gt;99999999*companyname&lt;/P&gt;
&lt;P&gt;22*companyname&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 13:50:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/subtring-on-a-variable-length-field/m-p/462698#M117826</guid>
      <dc:creator>myboys2</dc:creator>
      <dc:date>2018-05-16T13:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: subtring on a variable length field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/subtring-on-a-variable-length-field/m-p/462700#M117827</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;newfield = scan(oldfield,1,"*");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 May 2018 13:51:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/subtring-on-a-variable-length-field/m-p/462700#M117827</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-05-16T13:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: subtring on a variable length field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/subtring-on-a-variable-length-field/m-p/462706#M117832</link>
      <description>thank you!</description>
      <pubDate>Wed, 16 May 2018 13:58:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/subtring-on-a-variable-length-field/m-p/462706#M117832</guid>
      <dc:creator>myboys2</dc:creator>
      <dc:date>2018-05-16T13:58:59Z</dc:date>
    </item>
  </channel>
</rss>

