<?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: problem with ODS in SAS EG 8.3 in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982680#M46391</link>
    <description>&lt;P&gt;thank you for the summary! I will keep this in mind.&amp;nbsp; If I missed a semi column my macro would not work at all but it worked and I got the results as a sas report. The only problem I had is that I could not control the ods output. I experimented with the commenting syntax and if I used /* ...*/ the problem disappeared. When I changed it back to *...;&amp;nbsp; the ODS statement did not work and in the log I saw *ods..;&amp;nbsp; Mystery. But thanks. I will use 'block comments from now one.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jan 2026 16:38:17 GMT</pubDate>
    <dc:creator>LLOUKINE</dc:creator>
    <dc:date>2026-01-29T16:38:17Z</dc:date>
    <item>
      <title>problem with ODS in SAS EG 8.3</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982598#M46380</link>
      <description>&lt;P&gt;Hello, I have a problem with &amp;nbsp;the ODS output not working when it is coded inside a SAS macro code in SAS EG 8.3. The same SAS code works perfectly in SAS EG 7.1 Also if the ODS statement is coded outside a macro code it also works in SAS EG 8.3. But I need it to be working when it is coded inside a macro code. &amp;nbsp;How I can fix that problem? &amp;nbsp;Is there any options I can use before running my macro code or a special setup/options I should check in SAS EG 8.3 to fix the problem with the ODS? Any tips/ help will be very much appreciated. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2026 20:10:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982598#M46380</guid>
      <dc:creator>LLOUKINE</dc:creator>
      <dc:date>2026-01-28T20:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: problem with ODS in SAS EG 8.3</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982599#M46381</link>
      <description>&lt;P&gt;Please share a small example of code that causes the problem.&amp;nbsp; &amp;nbsp;Please share the log from running that code. Also please explain the problem.&amp;nbsp; Do you get errors in your log?&amp;nbsp; Is the ODS output file not being created? etc.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2026 20:13:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982599#M46381</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2026-01-28T20:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: problem with ODS in SAS EG 8.3</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982600#M46382</link>
      <description>&lt;P&gt;unfortunately I cannot copy and paste my code here as it is inside a virtual machine which is is subject for the vetting process by someone else if I want to get it outside of a VM. But the problem is that the output file with the summary stats from proc surveyfreq is not being generated if that is coded withing a macro code. If the same proc surveyfreq run is coded w/o a macro i can generate that output file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2026 20:31:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982600#M46382</guid>
      <dc:creator>LLOUKINE</dc:creator>
      <dc:date>2026-01-28T20:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: problem with ODS in SAS EG 8.3</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982613#M46383</link>
      <description>&lt;P&gt;Without code or a log we would be pretty much guessing at possibilities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To start, would turn on system option MPRINT, and review your log for the PROC SURVEYFREQ step to make sure it completed successfully, that the input data did not have 0 obs, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There shouldn't be anything special about running a PROC inside a macro.&amp;nbsp; And shouldn't be a difference between the EG versions.&amp;nbsp; So it's hard for me to guess what might be happening.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2026 21:00:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982613#M46383</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2026-01-28T21:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: problem with ODS in SAS EG 8.3</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982616#M46384</link>
      <description>&lt;P&gt;thanks for the suggestion. I will try it tomorrow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2026 21:11:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982616#M46384</guid>
      <dc:creator>LLOUKINE</dc:creator>
      <dc:date>2026-01-28T21:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: problem with ODS in SAS EG 8.3</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982618#M46385</link>
      <description>&lt;P&gt;ODS fails because somehow it gets turned off, or because somehow the macro code isn't creating the desired SAS (non-macro) code. Beyond that, I'd be guessing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You really haven't even told us what is in the log, such as errors. Are there any? What about warnings? What about data sets that are supposed to have some observations but wind up with 0 observations, according to the log?&lt;/P&gt;
&lt;P&gt;You can try running the command&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options mprint;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and then running your macro again, this will provide more useful information in the log.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2026 22:03:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982618#M46385</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2026-01-28T22:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: problem with ODS in SAS EG 8.3</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982629#M46386</link>
      <description>&lt;P&gt;One of the interesting differences between EG 7.x and 8.x is the change of the default output type. In the earlier version it was SAS Report, beginning with 8.x it is html.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can't provide the code used, please provide at least some more information about what the code does.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2026 06:46:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982629#M46386</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2026-01-29T06:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: problem with ODS in SAS EG 8.3</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982662#M46387</link>
      <description>&lt;P&gt;Thank you again for your suggestion to use mprint option. It helped me to identify a problem. It turned out that if I have a comment in front of my ods statement inside&amp;nbsp; the macro code coded as&amp;nbsp; * Comment...;&amp;nbsp; then my ods statement pick up that "*" somehow and not&amp;nbsp; working. In the log I see MPRINT (FREQTABLES) : * ods select X;&amp;nbsp; When I changed the syntax for my comments to&amp;nbsp; /* Comment x */&amp;nbsp; then my ods worked.&amp;nbsp; It seems that if I want to leave a&amp;nbsp; comments in my sas macro I must use /* Comment xx*/ syntax. Problem solved! thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2026 15:55:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982662#M46387</guid>
      <dc:creator>LLOUKINE</dc:creator>
      <dc:date>2026-01-29T15:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: problem with ODS in SAS EG 8.3</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982672#M46388</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/470018"&gt;@LLOUKINE&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please mark my post in this thread correct, and unmark your reply correct.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2026 16:09:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982672#M46388</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2026-01-29T16:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: problem with ODS in SAS EG 8.3</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982675#M46389</link>
      <description>&lt;P&gt;yes, I noticed this and added the SAS report as additional output option by changing the settings.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2026 16:10:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982675#M46389</guid>
      <dc:creator>LLOUKINE</dc:creator>
      <dc:date>2026-01-29T16:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: problem with ODS in SAS EG 8.3</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982677#M46390</link>
      <description>&lt;P&gt;SAS has three types of comments.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Normal comment statements.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* comment ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;These are treated by the macro processor the same as any other normal statement.&amp;nbsp; They would not actually cause any trouble in your macro is used properly.&amp;nbsp; I suspect that the real issue was a missing semicolon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Macro comment statements&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%* comment ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;These will be treated by macro processor as macro statements that do nothing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Block comments.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* comment that can contain ; characters */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You cannot nest these.&amp;nbsp; Any attempt to do so will cause trouble. Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* This is commented out
  /* And this is also */
  But this it not  and now SAS or macro processor
  is going to look for a semicolon to end this strange "but" statement
*/&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2026 16:22:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982677#M46390</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-01-29T16:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: problem with ODS in SAS EG 8.3</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982680#M46391</link>
      <description>&lt;P&gt;thank you for the summary! I will keep this in mind.&amp;nbsp; If I missed a semi column my macro would not work at all but it worked and I got the results as a sas report. The only problem I had is that I could not control the ods output. I experimented with the commenting syntax and if I used /* ...*/ the problem disappeared. When I changed it back to *...;&amp;nbsp; the ODS statement did not work and in the log I saw *ods..;&amp;nbsp; Mystery. But thanks. I will use 'block comments from now one.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2026 16:38:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982680#M46391</guid>
      <dc:creator>LLOUKINE</dc:creator>
      <dc:date>2026-01-29T16:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: problem with ODS in SAS EG 8.3</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982682#M46393</link>
      <description>&lt;P&gt;Statement comments should work fine in macros. And they are very valuable in making your SAS log more readable when using the MPRINT option since they will appear in the log.&lt;/P&gt;
&lt;PRE&gt; 73         * statement comment ;
 74         data test; x=1; run;
 
 NOTE: The data set WORK.TEST has 1 observations and 1 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 75         
 76         %macro test;
 77         * statement comments work fine in macros ;
 78         data test; x=1; run;
 79         %mend test;
 80         options mprint;
 MPRINT(TEST):   * statement comments work fine in macros ;
 81         %test;
 MPRINT(TEST):   data test;
 MPRINT(TEST):   x=1;
 MPRINT(TEST):   run;
 
 NOTE: The data set WORK.TEST has 1 observations and 1 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       &lt;/PRE&gt;
&lt;P&gt;There are two situations that I have seen that have caused trouble.&lt;/P&gt;
&lt;P&gt;One is the use of unbalanced quotes inside the statement comment.&amp;nbsp; Those will work in open code.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; 73         * Don't use unbalanced quotes ;
 74         data test; x=1; run;
 
 NOTE: The data set WORK.TEST has 1 observations and 1 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 75  &lt;/PRE&gt;
&lt;P&gt;But in a macro definition they can confuse the macro parser and cause your whole session so get confused and possibly required that it be restarted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the quotes are balanced over the whole macro definition they work, but don't depend on that.&lt;/P&gt;
&lt;PRE&gt; 76         %macro test;
 77         * Don't use unbalanced quotes ;
 78         data test; x=1; run;
 79         * You won't like the results ;
 80         %mend test;
 81         options mprint;
 MPRINT(TEST):   * Don't use unbalanced quotes ;
 82         %test;
 MPRINT(TEST):  data test;
 MPRINT(TEST):   x=1;
 MPRINT(TEST):   run;
 
 NOTE: The data set WORK.TEST has 1 observations and 1 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 MPRINT(TEST):  * You won't like the results ;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The other place I have seen them cause trouble is when using SAS/Connect session and remote submitting the macro definition to the remote session.&amp;nbsp; Something about the way the lines are parsed and transmitted to the remote sesssion to be compiled can cause it to get confused.&amp;nbsp; &amp;nbsp;I have seen macros that fail, but that just adding a single space so that the lines parse slightly differently they work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have found it works better when the remote session defines the macro itself by using %INCLUDE or autocall libraries (impliect %INCLUDE).&amp;nbsp; That seems to avoid whatever was causing the confusion.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2026 17:07:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982682#M46393</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-01-29T17:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: problem with ODS in SAS EG 8.3</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982687#M46395</link>
      <description>&lt;P&gt;thank you for your comments again. I will test your code in the virtual machine (VM) and see what happens. My new SAS EG (8.3) is installed withing a VM that we test now and we (not only me, my colleague as well) discovered that the macros that we used previously in SAS EG 5.3 that is installed on our laptops and worked perfect, now in the VM environment have problems with the ods. Perhaps your comment "&lt;SPAN&gt;The other place I have seen them cause trouble is when using SAS/Connect session and remote submitting the macro definition to the remote session.&amp;nbsp; Something about the way the lines are parsed and transmitted to the remote session to be compiled can cause it to get confused.&amp;nbsp; &amp;nbsp;I have seen macros that fail, but that just adding a single space so that the lines parse slightly differently they work." is the answer to our problems.&amp;nbsp; I really appreciate all your comments as it helps me to understand what may be wrong and how we can adapt our coding if we are forced to use sas via a VM.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2026 18:15:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982687#M46395</guid>
      <dc:creator>LLOUKINE</dc:creator>
      <dc:date>2026-01-29T18:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: problem with ODS in SAS EG 8.3</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982690#M46396</link>
      <description>&lt;P&gt;Just to add a little more context about macro and the recommended style to comments, here is a SAS Note from Technical Support:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sas.service-now.com/csm/en/using-comments-within-a-macro?id=kb_article_view&amp;amp;sysparm_article=KB0036213" target="_self"&gt;KB0036213&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2026 18:35:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982690#M46396</guid>
      <dc:creator>Kathryn_SAS</dc:creator>
      <dc:date>2026-01-29T18:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: problem with ODS in SAS EG 8.3</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982691#M46397</link>
      <description>&lt;P&gt;thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2026 18:47:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/problem-with-ODS-in-SAS-EG-8-3/m-p/982691#M46397</guid>
      <dc:creator>LLOUKINE</dc:creator>
      <dc:date>2026-01-29T18:47:26Z</dc:date>
    </item>
  </channel>
</rss>

