<?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: Symput in function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Symput-in-function/m-p/18546#M2797</link>
    <description>My bad.  Needed INDEXC()</description>
    <pubDate>Tue, 17 Nov 2009 22:21:52 GMT</pubDate>
    <dc:creator>paulsparrow</dc:creator>
    <dc:date>2009-11-17T22:21:52Z</dc:date>
    <item>
      <title>Symput in function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Symput-in-function/m-p/18545#M2796</link>
      <description>I am trying to create a macro shortcut for use in a function.&lt;BR /&gt;
&lt;BR /&gt;
DATA _null_ ;&lt;BR /&gt;
  CALL symput('num','1234567890');&lt;BR /&gt;
RUN ;&lt;BR /&gt;
&lt;BR /&gt;
Then later do this:&lt;BR /&gt;
 xxx = INDEX(city,&amp;amp;num.) ;&lt;BR /&gt;
&lt;BR /&gt;
The code is not picking up the macro assignement.  Any help?</description>
      <pubDate>Tue, 17 Nov 2009 22:12:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Symput-in-function/m-p/18545#M2796</guid>
      <dc:creator>paulsparrow</dc:creator>
      <dc:date>2009-11-17T22:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Symput in function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Symput-in-function/m-p/18546#M2797</link>
      <description>My bad.  Needed INDEXC()</description>
      <pubDate>Tue, 17 Nov 2009 22:21:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Symput-in-function/m-p/18546#M2797</guid>
      <dc:creator>paulsparrow</dc:creator>
      <dc:date>2009-11-17T22:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Symput in function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Symput-in-function/m-p/18547#M2798</link>
      <description>The SAS 9 (introduced) function ANYDIGIT may also work for you - with my test as compared to INDEXC, it was twice as fast over a large DO/END loop on Windows OS.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Tue, 17 Nov 2009 22:35:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Symput-in-function/m-p/18547#M2798</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-11-17T22:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Symput in function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Symput-in-function/m-p/18548#M2799</link>
      <description>Try replacing:&lt;BR /&gt;
&lt;BR /&gt;
INDEX(city,&amp;amp;num) &lt;BR /&gt;
&lt;BR /&gt;
with:&lt;BR /&gt;
&lt;BR /&gt;
INDEX(city,symget('num'))&lt;BR /&gt;
&lt;BR /&gt;
You should also consider Scott's suggestions, ANYDIGIT might do the trick in a much simpler way.&lt;BR /&gt;
&lt;BR /&gt;
Cheers from Portugal.&lt;BR /&gt;
&lt;BR /&gt;
Daniel Santos @ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;</description>
      <pubDate>Wed, 18 Nov 2009 11:22:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Symput-in-function/m-p/18548#M2799</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2009-11-18T11:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Symput in function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Symput-in-function/m-p/18549#M2800</link>
      <description>I believe the use of INDEX function is not equivalent to either INDEXC or ANYDIGIT.  Also, if the OP was to use INDEX, the second argument must be character, so it would need to be enclosed in double-quotation marks to work properly.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 18 Nov 2009 14:27:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Symput-in-function/m-p/18549#M2800</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-11-18T14:27:09Z</dc:date>
    </item>
  </channel>
</rss>

