<?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: How to format macro parameter in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-format-macro-parameter/m-p/2808#M916</link>
    <description>Archie,&lt;BR /&gt;
&lt;BR /&gt;
Your better off using Proc Sql for something like this.&lt;BR /&gt;
&lt;BR /&gt;
Post more of your code and see if I can help you further.</description>
    <pubDate>Tue, 17 Apr 2007 18:20:13 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2007-04-17T18:20:13Z</dc:date>
    <item>
      <title>How to format macro parameter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-format-macro-parameter/m-p/2807#M915</link>
      <description>I am trying to format a macro call from within a datastep using the call execute statement.  I have not figured out how to format the parameter.&lt;BR /&gt;
The parameter needed is a list of quoted strings:&lt;BR /&gt;
'0001','0002','0003','0004'&lt;BR /&gt;
&lt;BR /&gt;
When I EXECUTE I get the following error:&lt;BR /&gt;
ERROR: More positional parameters found than defined.&lt;BR /&gt;
&lt;BR /&gt;
So apparently my list is being interpretted as 4 parameters rather than one.&lt;BR /&gt;
How can I get this parameter to pass through OK?&lt;BR /&gt;
&lt;BR /&gt;
my code:&lt;BR /&gt;
CALL EXECUTE ( '%getInfo(' || cust_nbrs || ');');</description>
      <pubDate>Mon, 16 Apr 2007 12:55:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-format-macro-parameter/m-p/2807#M915</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-04-16T12:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to format macro parameter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-format-macro-parameter/m-p/2808#M916</link>
      <description>Archie,&lt;BR /&gt;
&lt;BR /&gt;
Your better off using Proc Sql for something like this.&lt;BR /&gt;
&lt;BR /&gt;
Post more of your code and see if I can help you further.</description>
      <pubDate>Tue, 17 Apr 2007 18:20:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-format-macro-parameter/m-p/2808#M916</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-04-17T18:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to format macro parameter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-format-macro-parameter/m-p/2809#M917</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
try this:&lt;BR /&gt;
CALL EXECUTE ( '%getInfo(%quote(' || cust_nbrs || '))'); &lt;BR /&gt;
&lt;BR /&gt;
Hope this works.</description>
      <pubDate>Wed, 18 Apr 2007 12:03:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-format-macro-parameter/m-p/2809#M917</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-04-18T12:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to format macro parameter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-format-macro-parameter/m-p/2810#M918</link>
      <description>No, that does nothing, I tried all the functions like that I could find.  Only work around I could come up with is to create indexed global variables for each parameter string, and then call the macro with each global parameter after the data step is done.  What a pain!!!</description>
      <pubDate>Wed, 18 Apr 2007 13:07:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-format-macro-parameter/m-p/2810#M918</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-04-18T13:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to format macro parameter</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-format-macro-parameter/m-p/2811#M919</link>
      <description>Oops....I spoke too soon....this actually  does work !!!&lt;BR /&gt;
&lt;BR /&gt;
Thank you for your thoughtfullness!!!</description>
      <pubDate>Wed, 18 Apr 2007 14:41:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-format-macro-parameter/m-p/2811#M919</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-04-18T14:41:34Z</dc:date>
    </item>
  </channel>
</rss>

