<?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 SAS Base Question in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-Base-Question/m-p/521868#M4309</link>
    <description>&lt;P&gt;I have a data set with variable name called description.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Description="The mobile is produced by Apple"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the above string, i want to extract from&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;b&lt;A href="https://techmahindra.sumtotal.host/core/" target="_blank" rel="nofollow noopener noreferrer"&gt;y Apple&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;the length is not consistence but i wanted to extract from&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;by.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks in advance.&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Dec 2018 10:09:36 GMT</pubDate>
    <dc:creator>Pandu</dc:creator>
    <dc:date>2018-12-17T10:09:36Z</dc:date>
    <item>
      <title>SAS Base Question</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Base-Question/m-p/521868#M4309</link>
      <description>&lt;P&gt;I have a data set with variable name called description.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Description="The mobile is produced by Apple"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the above string, i want to extract from&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;b&lt;A href="https://techmahindra.sumtotal.host/core/" target="_blank" rel="nofollow noopener noreferrer"&gt;y Apple&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;the length is not consistence but i wanted to extract from&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;by.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks in advance.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 10:09:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Base-Question/m-p/521868#M4309</guid>
      <dc:creator>Pandu</dc:creator>
      <dc:date>2018-12-17T10:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Base Question</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Base-Question/m-p/521869#M4310</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
input description&amp;amp;$100.;
new=substr(description,index(description,'by'));
cards;
The mobile is produced by Apple
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Dec 2018 10:18:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Base-Question/m-p/521869#M4310</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2018-12-17T10:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Base Question</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Base-Question/m-p/521870#M4311</link>
      <description>&lt;P&gt;alternatively by perl regular expressions&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
input description&amp;amp;$100.;
new=prxchange('s/(.*)(by*)/$2/i',-1,strip(description));
cards;
The mobile is produced by Apple
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Dec 2018 10:25:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Base-Question/m-p/521870#M4311</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2018-12-17T10:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Base Question</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Base-Question/m-p/521871#M4312</link>
      <description>&lt;P&gt;Hi Jag...I dont want to use &lt;STRONG&gt;by...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;after certain string i want to dived&amp;nbsp;into two strings.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 10:35:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Base-Question/m-p/521871#M4312</guid>
      <dc:creator>Pandu</dc:creator>
      <dc:date>2018-12-17T10:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Base Question</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Base-Question/m-p/521872#M4313</link>
      <description>&lt;P&gt;I would recommend using the findw() function rather than index, which will find any occurrences of the word "by" in the string rather than any occurrences (e.g. it index would find it in "byway").&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; want&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;  input&lt;/SPAN&gt; description &lt;SPAN class="token punctuation"&gt;$&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;100&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
  new&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;substr&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;description&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;findw&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;description&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'by'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token datalines"&gt;&lt;SPAN class="token keyword"&gt;cards&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;SPAN class="token data string"&gt;
The mobile is produced by Apple
&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Dec 2018 10:37:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Base-Question/m-p/521872#M4313</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-12-17T10:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Base Question</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Base-Question/m-p/521873#M4314</link>
      <description>&lt;P&gt;Provide test data in the form of a datastep:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then show what you want out at the end from that test data.&amp;nbsp; Also explain fully what your problem is and logic.&amp;nbsp; Your original post only stipulated split by "by", we cannot guess any further what your intentions are!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 10:39:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Base-Question/m-p/521873#M4314</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-12-17T10:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Base Question</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Base-Question/m-p/522020#M4337</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/126880"&gt;@Pandu&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Jag...I dont want to use &lt;STRONG&gt;by...&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;after certain string i want to dived&amp;nbsp;into two strings.&lt;/STRONG&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Show explicit desired output.&lt;/P&gt;
&lt;P&gt;This description of "...I dont want to use &lt;STRONG&gt;by&lt;/STRONG&gt;"&amp;nbsp;is not quite consistent with your original question.&lt;/P&gt;
&lt;P&gt;Also It might help to show more than one worked example if you need to use something other than "by" as the split element.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 19:52:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Base-Question/m-p/522020#M4337</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-12-17T19:52:23Z</dc:date>
    </item>
  </channel>
</rss>

