<?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: Difference in positions in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Difference-in-positions/m-p/263058#M269154</link>
    <description>&lt;P&gt;Well, you could use the index function to find each A and then subtract but that doesn't scale well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Will you always be looking for two As?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like your doing string functions. You may want to review the available functions here&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/67960/HTML/default/viewer.htm#p0w6napahk6x0an0z2dzozh2ouzm.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lefunctionsref/67960/HTML/default/viewer.htm#p0w6napahk6x0an0z2dzozh2ouzm.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Apr 2016 00:57:49 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-04-12T00:57:49Z</dc:date>
    <item>
      <title>Difference in positions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-in-positions/m-p/263051#M269153</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;Hello &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;There is a statement: "Apple is the Anthem"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How do I write a step that finds the difference in positions between the two As?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;THANK YOU!!!!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 23:52:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-in-positions/m-p/263051#M269153</guid>
      <dc:creator>light</dc:creator>
      <dc:date>2016-04-11T23:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in positions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-in-positions/m-p/263058#M269154</link>
      <description>&lt;P&gt;Well, you could use the index function to find each A and then subtract but that doesn't scale well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Will you always be looking for two As?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like your doing string functions. You may want to review the available functions here&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/67960/HTML/default/viewer.htm#p0w6napahk6x0an0z2dzozh2ouzm.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lefunctionsref/67960/HTML/default/viewer.htm#p0w6napahk6x0an0z2dzozh2ouzm.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 00:57:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-in-positions/m-p/263058#M269154</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-12T00:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in positions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-in-positions/m-p/263063#M269155</link>
      <description>&lt;P&gt;Just two A ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
x="Apple is the Anthem";
a=findc(x,'A');
b=findc(x,'A','b');
dif=b-a;
put a= b= dif=;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Apr 2016 01:39:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-in-positions/m-p/263063#M269155</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-04-12T01:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in positions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-in-positions/m-p/263069#M269156</link>
      <description>&lt;P&gt;Hi Ksharp,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Works perfectly!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your sharp advice &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 02:04:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-in-positions/m-p/263069#M269156</guid>
      <dc:creator>light</dc:creator>
      <dc:date>2016-04-12T02:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in positions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-in-positions/m-p/263070#M269157</link>
      <description>Hi Reesa,&lt;BR /&gt;&lt;BR /&gt;I will review these! Thank you greatly !!</description>
      <pubDate>Tue, 12 Apr 2016 02:05:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-in-positions/m-p/263070#M269157</guid>
      <dc:creator>light</dc:creator>
      <dc:date>2016-04-12T02:05:22Z</dc:date>
    </item>
  </channel>
</rss>

