<?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: Invoking multiple macros in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193511#M36384</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the Mprint and MFile options and there is a problem with the (%ULCompositeQx&amp;amp;&amp;amp;Macro&amp;amp;i)(&amp;amp;&amp;amp;stUID&amp;amp;i,&amp;amp;&amp;amp;Macro&amp;amp;i,&amp;amp;&amp;amp;stMedInd&amp;amp;i,&amp;amp;&amp;amp;stMcc&amp;amp;i,&amp;amp;&amp;amp;stsex&amp;amp;i,&amp;amp;&amp;amp;intAge&amp;amp;i,&amp;amp;&amp;amp;intDur&amp;amp;i,&amp;amp;&amp;amp;stPcode&amp;amp;i,&amp;amp;&amp;amp;intIssueyr&amp;amp;i&lt;BR /&gt;stement...&lt;/P&gt;&lt;P&gt;the demacroed code is %ULCompositeQx .(000123033 , ., ., ., ., 42, .,12985, 2001);&lt;/P&gt;&lt;P&gt;so its recognizing the variables properly but not the correct macro number...i have macros ULcomposite 1-6&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Apr 2015 10:55:50 GMT</pubDate>
    <dc:creator>glmer</dc:creator>
    <dc:date>2015-04-14T10:55:50Z</dc:date>
    <item>
      <title>Invoking multiple macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193497#M36370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;invoke_e macro,&lt;BR /&gt;i have this following code::&lt;/P&gt;&lt;P&gt;%MACRO GenerateVariables ;&lt;/P&gt;&lt;P&gt; %GLOBAL stUID Macro stMedInd stMCC stSex intAge intDur stPcode intIssueyr;&lt;/P&gt;&lt;P&gt;%END;&lt;/P&gt;&lt;P&gt;%GLOBAL N;&lt;/P&gt;&lt;P&gt;DATA _NULL_&lt;/P&gt;&lt;P&gt;SET Output.ULExtract&amp;amp;SYear END = LAST;&lt;/P&gt;&lt;P&gt;CALL SYMPUT(COMPRESS('stUID'||_N_), Polnum);&lt;/P&gt;&lt;P&gt;CALL SYMPUT(COMPRESS('Macro'||_N_), stMacroName);&lt;/P&gt;&lt;P&gt;CALL SYMPUT(COMPRESS('stMedInd'||_N_), MedInd);&lt;/P&gt;&lt;P&gt;CALL SYMPUT(COMPRESS('stMCC'||_N_), Uncd);&lt;/P&gt;&lt;P&gt;CALL SYMPUT(COMPRESS('stSex'||_N_), Mysex);&lt;/P&gt;&lt;P&gt;CALL SYMPUT(COMPRESS('intAge'||_N_), issage);&lt;/P&gt;&lt;P&gt;CALL SYMPUT(COMPRESS('intDur'||_N_), Duration);&lt;/P&gt;&lt;P&gt;CALL SYMPUT(COMPRESS('stPcode'||_N_), Plancode);&lt;/P&gt;&lt;P&gt;CALL SYMPUT(COMPRESS('intIssueyr'||_N_), efyr);&lt;/P&gt;&lt;P&gt;IF LAST THEN CALL SYMPUT('N',_N_);&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;%MEND;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%MACRO RunCompositeQx;&lt;/P&gt;&lt;P&gt; %DO i = 1 %TO &amp;amp;N;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %ULCompositeQx&amp;amp;&amp;amp;Macro&amp;amp;i(&amp;amp;&amp;amp;stUID&amp;amp;i,&amp;amp;&amp;amp;Macro&amp;amp;i,&amp;amp;&amp;amp;stMedInd&amp;amp;i,&amp;amp;&amp;amp;stMcc&amp;amp;i,&amp;amp;&amp;amp;stsex&amp;amp;i,&amp;amp;&amp;amp;intAge&amp;amp;i,&amp;amp;&amp;amp;intDur&amp;amp;i,&amp;amp;&amp;amp;stPcode&amp;amp;i,&amp;amp;&amp;amp;intIssueyr&amp;amp;i);&lt;/P&gt;&lt;P&gt;&amp;nbsp; PROC SQL NOPRINT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; INSERT INTO Work.Output VALUES (&amp;amp;stPolnum, &amp;amp;CompQx1, &amp;amp;CompQx2);&lt;/P&gt;&lt;P&gt;&amp;nbsp; QUIT;&lt;/P&gt;&lt;P&gt; %END;&lt;/P&gt;&lt;P&gt;%MEND;&lt;/P&gt;&lt;P&gt;%MACRO FinalRun;&lt;/P&gt;&lt;P&gt;/*%DO j = 1 %TO &amp;amp;FracChunk;*/&lt;/P&gt;&lt;P&gt; %GenerateVariables;&lt;/P&gt;&lt;P&gt; %RunCompositeQx;&lt;/P&gt;&lt;P&gt;%MEND;&lt;/P&gt;&lt;P&gt;%FinalRun;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is throwing up the following error:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: a quoted string, a numeric constant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a datetime constant, a missing value, MISSING, NULL, USER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;LINE and COLUMN cannot be determined&lt;/P&gt;&lt;P&gt;WARNING: Apparent invocation of macro ULCompositeQx not resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me get this macro working please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 17:49:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193497#M36370</guid>
      <dc:creator>glmer</dc:creator>
      <dc:date>2015-04-10T17:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking multiple macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193498#M36371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't have defined a macro named %ULCompositeQx, so SAS doesn't know what to do when it encounters you calling this macro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 18:10:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193498#M36371</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-04-10T18:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking multiple macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193499#M36372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No I have those. Just not part of this snippet of code. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 18:37:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193499#M36372</guid>
      <dc:creator>glmer</dc:creator>
      <dc:date>2015-04-10T18:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking multiple macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193500#M36373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But SAS is telling you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WARNING: Apparent invocation of macro ULCompositeQx not resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I can see, you also don't have valid code for macro GenerateVariables. The line %end; just under the first %global causes this macro to fail.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 18:49:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193500#M36373</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-04-10T18:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking multiple macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193501#M36374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Call execute could make this much simpler....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 18:54:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193501#M36374</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-04-10T18:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking multiple macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193502#M36375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you write some indicative codes please?&amp;nbsp; For call executing them&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 19:06:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193502#M36375</guid>
      <dc:creator>glmer</dc:creator>
      <dc:date>2015-04-10T19:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking multiple macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193503#M36376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;You'll have to probably redesign portion but this would be the gist of it:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;set &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Output.ULExtract&amp;amp;SYear&lt;/SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;string = cats("%ULCompositeQx(", catx(",", &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;stUID, Macro,stMedIni,stMcc,stsex,intAge,intDur,stPcode,intIssueyr), ");");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;call execute(string);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 19:12:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193503#M36376</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-04-10T19:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking multiple macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193504#M36377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, but how will this work for 6 macros ULCompositeQx1-6.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 13:43:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193504#M36377</guid>
      <dc:creator>glmer</dc:creator>
      <dc:date>2015-04-13T13:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking multiple macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193505#M36378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do i=1 to 6;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('%ULCompositeQx'||strip(put(i,best.))||' (paramters);');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps post some test data, and required output as I fully agree with Reeza, you appear to be vastly over-complicating your code.&amp;nbsp; Check out arrays for example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 13:54:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193505#M36378</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-04-13T13:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking multiple macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193506#M36379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried replacing this line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%ULCompositeQx&amp;amp;&amp;amp;Macro&amp;amp;i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This might work better:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%unquote(%ULCompositeQx&amp;amp;&amp;amp;Macro&amp;amp;i)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It could be a matter of tokenization not being properly interpreted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 13:59:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193506#M36379</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-04-13T13:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking multiple macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193507#M36380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I doubt there's a good reason for 6 versions of a macro - make one version and pass the number in as a parameter to then do some other logic in the code. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 14:27:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193507#M36380</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-04-13T14:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking multiple macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193508#M36381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i used this :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;%MACRO RunCompositeQx;&lt;/P&gt;&lt;P&gt; %DO i = 1 %TO &amp;amp;N;&lt;/P&gt;&lt;P&gt; %unquote(%ULCompositeQx&amp;amp;&amp;amp;Macro&amp;amp;i)(&amp;amp;&amp;amp;stUID&amp;amp;i,&amp;amp;&amp;amp;Macro&amp;amp;i,&amp;amp;&amp;amp;stMedInd&amp;amp;i,&amp;amp;&amp;amp;stMcc&amp;amp;i,&amp;amp;&amp;amp;stsex&amp;amp;i,&amp;amp;&amp;amp;intAge&amp;amp;i,&amp;amp;&amp;amp;intDur&amp;amp;i,&amp;amp;&amp;amp;stPcode&amp;amp;i,&amp;amp;&amp;amp;intIssueyr&amp;amp;i);&lt;/P&gt;&lt;P&gt;&amp;nbsp; PROC SQL NOPRINT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; INSERT INTO Work.Output VALUES (&amp;amp;stPolnum, &amp;amp;CompQx1, &amp;amp;CompQx2);&lt;/P&gt;&lt;P&gt;&amp;nbsp; QUIT;&lt;/P&gt;&lt;P&gt; %END;&lt;/P&gt;&lt;P&gt;%MEND;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;but still got the following errors:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;22: LINE and COLUMN cannot be determined.&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: a quoted string, a numeric constant,&lt;/P&gt;&lt;P&gt;&amp;nbsp; a datetime constant, a missing value, +, -, MISSING, NULL, USER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 16:24:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193508#M36381</guid>
      <dc:creator>glmer</dc:creator>
      <dc:date>2015-04-13T16:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking multiple macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193509#M36382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then I would recommend getting rid of the macro language, to narrow down the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is actually easier than it sounds.&amp;nbsp; Take a look at the MFILE and MPRINT combination of options.&amp;nbsp; They will let you save the code generated by the macro, in a separate file.&amp;nbsp; Then run the file which will contain the generated code but no macro language.&amp;nbsp; The error message you get will be much cleaner to interpret.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 16:57:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193509#M36382</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-04-13T16:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking multiple macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193510#M36383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Precisely why I avoid macros:&lt;/P&gt;&lt;P&gt;%unquote(%ULCompositeQx&amp;amp;&amp;amp;Macro&amp;amp;i)(&amp;amp;&amp;amp;stUID&amp;amp;i,&amp;amp;&amp;amp;Macro&amp;amp;i,&amp;amp;&amp;amp;stMedInd&amp;amp;i,&amp;amp;&amp;amp;stMcc&amp;amp;i,&amp;amp;&amp;amp;stsex&amp;amp;i,&amp;amp;&amp;amp;intAge&amp;amp;i,&amp;amp;&amp;amp;intDur&amp;amp;i,&amp;amp;&amp;amp;stPcode&amp;amp;i,&amp;amp;&amp;amp;intIssueyr&amp;amp;i);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That to me is the epitome of obfuscation.&amp;nbsp; What is it your trying to achieve?&amp;nbsp; Post test data and example output.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 16:59:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193510#M36383</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-04-13T16:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking multiple macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193511#M36384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the Mprint and MFile options and there is a problem with the (%ULCompositeQx&amp;amp;&amp;amp;Macro&amp;amp;i)(&amp;amp;&amp;amp;stUID&amp;amp;i,&amp;amp;&amp;amp;Macro&amp;amp;i,&amp;amp;&amp;amp;stMedInd&amp;amp;i,&amp;amp;&amp;amp;stMcc&amp;amp;i,&amp;amp;&amp;amp;stsex&amp;amp;i,&amp;amp;&amp;amp;intAge&amp;amp;i,&amp;amp;&amp;amp;intDur&amp;amp;i,&amp;amp;&amp;amp;stPcode&amp;amp;i,&amp;amp;&amp;amp;intIssueyr&amp;amp;i&lt;BR /&gt;stement...&lt;/P&gt;&lt;P&gt;the demacroed code is %ULCompositeQx .(000123033 , ., ., ., ., 42, .,12985, 2001);&lt;/P&gt;&lt;P&gt;so its recognizing the variables properly but not the correct macro number...i have macros ULcomposite 1-6&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 10:55:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193511#M36384</guid>
      <dc:creator>glmer</dc:creator>
      <dc:date>2015-04-14T10:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking multiple macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193512#M36385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is telling you that the resolution of &amp;amp;&amp;amp;Macro&amp;amp;i generates a dot (with a preceding blank).&amp;nbsp; You'll need to examine &amp;amp;macro1 - &amp;amp;macro6 to diagnose where the problem is originating but at least one of them is causing a problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 13:21:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invoking-multiple-macros/m-p/193512#M36385</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-04-14T13:21:32Z</dc:date>
    </item>
  </channel>
</rss>

