<?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 Problem with MPRINT not producing the resolved macro stuff in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-MPRINT-not-producing-the-resolved-macro-stuff/m-p/32091#M7690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you say that the test ran fine, then it is a problem in the program itself and not with SAS.&amp;nbsp; I wonder if the OPTIONS statement might have been commented out inadvertently.&amp;nbsp; The other thing to look for is a NOMPRINT somewhere.&amp;nbsp; I know you said that there were no other options, but it might be hidden in some other included or autocall code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doc Muhlbaier&lt;/P&gt;&lt;P&gt;Duke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Oct 2011 15:48:33 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2011-10-20T15:48:33Z</dc:date>
    <item>
      <title>Problem with MPRINT not producing the resolved macro stuff</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-MPRINT-not-producing-the-resolved-macro-stuff/m-p/32090#M7689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a large program that has the following OPTIONS statement at the top of the program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options obs=max mprint mlogic symbolgen macrogen source2 errors=1 validvarname=upcase;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program starts with the OPTIONS statement then the normal %LETs and FILENAME statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then there is a %MACRO .... %MEND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then another %MACRO called 'MAIN'&lt;/P&gt;&lt;P&gt;and the %MEND MAIN is on the last page.&amp;nbsp; And then the execution of the MACRO&amp;nbsp; 'MAIN'.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is one other OPTIONS statement with only the following&amp;nbsp;&amp;nbsp; (&amp;nbsp; MISSING = '&amp;nbsp; '&amp;nbsp; ) close to the last page inside the MAIN macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that I do not receive any of the macro generated code in my LOG file.&amp;nbsp; I need this information&lt;/P&gt;&lt;P&gt;and I can't figure out why it is not showing up.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also this is being run on a LINUX machine. Attached is a small test program I ran that worked fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any suggestions here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nancy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 15:07:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-with-MPRINT-not-producing-the-resolved-macro-stuff/m-p/32090#M7689</guid>
      <dc:creator>SASHunter</dc:creator>
      <dc:date>2011-10-20T15:07:51Z</dc:date>
    </item>
    <item>
      <title>Problem with MPRINT not producing the resolved macro stuff</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-MPRINT-not-producing-the-resolved-macro-stuff/m-p/32091#M7690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you say that the test ran fine, then it is a problem in the program itself and not with SAS.&amp;nbsp; I wonder if the OPTIONS statement might have been commented out inadvertently.&amp;nbsp; The other thing to look for is a NOMPRINT somewhere.&amp;nbsp; I know you said that there were no other options, but it might be hidden in some other included or autocall code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doc Muhlbaier&lt;/P&gt;&lt;P&gt;Duke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 15:48:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-with-MPRINT-not-producing-the-resolved-macro-stuff/m-p/32091#M7690</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2011-10-20T15:48:33Z</dc:date>
    </item>
    <item>
      <title>Problem with MPRINT not producing the resolved macro stuff</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-MPRINT-not-producing-the-resolved-macro-stuff/m-p/32092#M7691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I looked at the program again and find no other OPTIONS statements (besides those two I mentioned).&amp;nbsp; The program does contain two %INCLUDE and in looking at those, there is no OPTIONS inside these.&amp;nbsp; This program is in a production directory and I thought maybe there was some type of automatic SAS generated code that suppressed the OPTIONS, but I have other log files where the macro generated code appears. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is all so puzzling!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp; Nancy&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 16:31:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-with-MPRINT-not-producing-the-resolved-macro-stuff/m-p/32092#M7691</guid>
      <dc:creator>SASHunter</dc:creator>
      <dc:date>2011-10-20T16:31:35Z</dc:date>
    </item>
    <item>
      <title>Problem with MPRINT not producing the resolved macro stuff</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-MPRINT-not-producing-the-resolved-macro-stuff/m-p/32093#M7692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try putting &lt;/P&gt;&lt;P&gt;OPTIONS MPRINT;&lt;/P&gt;&lt;P&gt;right in front of the last macro.&amp;nbsp; It is a kluge, but will allow you to see the other code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 17:05:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-with-MPRINT-not-producing-the-resolved-macro-stuff/m-p/32093#M7692</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2011-10-20T17:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with MPRINT not producing the resolved macro stuff</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-MPRINT-not-producing-the-resolved-macro-stuff/m-p/32094#M7693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure that the macro generated any code?&amp;nbsp; &lt;/P&gt;&lt;P&gt;It is possible that the code is conditional and in your current program the macro has decided to skip all of the parts that generate code.&lt;/P&gt;&lt;P&gt;It is possible the create macros that only execute macro statements and hence will not generate any code.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 17:08:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-with-MPRINT-not-producing-the-resolved-macro-stuff/m-p/32094#M7693</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-10-20T17:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with MPRINT not producing the resolved macro stuff</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-MPRINT-not-producing-the-resolved-macro-stuff/m-p/32095#M7694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean putting the OPTIONS statement before the execution of %MAIN or before the line that starts with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'%MACRO MAIN;'&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NANCY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 17:54:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-with-MPRINT-not-producing-the-resolved-macro-stuff/m-p/32095#M7694</guid>
      <dc:creator>SASHunter</dc:creator>
      <dc:date>2011-10-20T17:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with MPRINT not producing the resolved macro stuff</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-MPRINT-not-producing-the-resolved-macro-stuff/m-p/32096#M7695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed the first OPTIONS statement back to what it had previously been:&lt;/P&gt;&lt;P&gt;OPTIONS obs=max mprint errors=1 validvarname=upcase;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I added a new OPTIONS statement, just 'OPTIONS MPRINT' right before the MACRO 'Main' line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPTIONS MPRINT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro main;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it works!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why it doesn't recognize the first MPRINT statement I'd like to know!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nancy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 15:44:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-with-MPRINT-not-producing-the-resolved-macro-stuff/m-p/32096#M7695</guid>
      <dc:creator>SASHunter</dc:creator>
      <dc:date>2011-10-21T15:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with MPRINT not producing the resolved macro stuff</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-MPRINT-not-producing-the-resolved-macro-stuff/m-p/32097#M7696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would look first to make sure that the OPTION statement is actually running.&amp;nbsp; It is possible that there is some character in front of it that is converting it into a comment or text string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you would need to check the program statements to see if there are any that have turned off the MPRINT option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 16:56:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-with-MPRINT-not-producing-the-resolved-macro-stuff/m-p/32097#M7696</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-10-21T16:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with MPRINT not producing the resolved macro stuff</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-MPRINT-not-producing-the-resolved-macro-stuff/m-p/32098#M7697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you said that, I thought I'd try one more thing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I copied the beginning of that problem - (which is three pages of comments) and the first couple lines of code that included the OPTIONS statement; into a small program.&amp;nbsp; I then&amp;nbsp; opened up a SAS windowing session on the LINUX machine and opened up this new program.&amp;nbsp; Sure enough the OPTIONS statement was being seen as part of the comments above it.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now not that I didn't think of that before, I looked at the comments and saw that it ended with a slash.&amp;nbsp; But the problem was that the slash at the very top of the program was missing.&amp;nbsp;&amp;nbsp; This made the next line (OPTIONS statement) become part of the comments because the OPTIONS statement ended with the first semicolon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wow - what a headache.&amp;nbsp; :smileyplain:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Nancy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 18:33:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-with-MPRINT-not-producing-the-resolved-macro-stuff/m-p/32098#M7697</guid>
      <dc:creator>SASHunter</dc:creator>
      <dc:date>2011-10-21T18:33:15Z</dc:date>
    </item>
  </channel>
</rss>

