<?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: Questions regarding macros automatically outputting table of content data in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Questions-regarding-macros-automatically-outputting-table-of/m-p/559895#M7588</link>
    <description>there is no proc contents code....Strange!</description>
    <pubDate>Sat, 18 May 2019 15:39:06 GMT</pubDate>
    <dc:creator>MaryA_Marion</dc:creator>
    <dc:date>2019-05-18T15:39:06Z</dc:date>
    <item>
      <title>Questions regarding macros automatically outputting table of content data</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Questions-regarding-macros-automatically-outputting-table-of/m-p/558743#M7549</link>
      <description>&lt;P&gt;I am running the following autoexec before calling a macro. I usually just have the output go to the default window so I am not specifying html or pdf in the code itself although it is listed in the preferences.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;AUTOEXEC.SAS
%LET sasworklocation="/folders/myfolders/";
ODS LISTING GPATH=&amp;amp;sasworklocation; 
/* ODS STATEMENTS */
ods path reset; 
ods _ALL_ close; 
ods trace off;
ods listing; 
ods noptitle; 
ods graphics on;

*INITIALIZATION 
proc printto; run;  
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I am following the autoexec with a call to a macro but I suspect that the macro itself initiates the table of content output. That is what is happening on the code I am working with. A display of unwanted table of content data appears in the results window. How can I stop that from happening when running SAS University? It greatly increases output size. I got it to stop once when I changed the preferences but it is back in again. The following statement added to the macro does not work.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;ODS html5 exclude toc 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The error message says:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; html5 destination is not active  
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I need something similar to this ???&lt;/P&gt;
&lt;P&gt;I don't want to output to pdf or rtf for simplicity. I just want to open sas studio /sas university, code, and get output to the screen.&lt;/P&gt;
&lt;P&gt;By the way, why am I not getting an output window as well?&lt;/P&gt;
&lt;P&gt;Thanks. MM&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 19:37:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Questions-regarding-macros-automatically-outputting-table-of/m-p/558743#M7549</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2019-05-14T19:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Questions regarding macros automatically outputting table of content data</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Questions-regarding-macros-automatically-outputting-table-of/m-p/558748#M7550</link>
      <description>Hi:&lt;BR /&gt;  Without seeing ALL of your code, it is hard to comment. &lt;BR /&gt;Cynthia</description>
      <pubDate>Tue, 14 May 2019 19:54:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Questions-regarding-macros-automatically-outputting-table-of/m-p/558748#M7550</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-05-14T19:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Questions regarding macros automatically outputting table of content data</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Questions-regarding-macros-automatically-outputting-table-of/m-p/558750#M7551</link>
      <description>&lt;P&gt;Did you look into the macro definition to see if it does indeed initiate the TOC?&amp;nbsp; If the macro is generating code that explicitly creates a TOC, I would think the answer would be to modify the macro&amp;nbsp; (perhaps add a parameter that allows you to turn the TOC on/off).&amp;nbsp; If the macro does not ask for TOC, then I would look at the log to see the ODS statement generated by studio, to see if that is what is adding the TOC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe a simple test would be submit something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro printit(data);
  proc print data=&amp;amp;data (obs=5);
  run;
%mend printit;

%printit(sashelp.shoes)
%printit(sashelp.class)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you run that, and studio creates a TOC, you will know it's not the code generated by the macro.&amp;nbsp; And you'd have a simple log to look at to see what code is asking for the TOC.&amp;nbsp; I haven't used Studio.&amp;nbsp; I'm assuming that, similar to EG, you can set an option to make sure that the wrapper code generated by studio is shown in the log.&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 19:59:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Questions-regarding-macros-automatically-outputting-table-of/m-p/558750#M7551</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2019-05-14T19:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Questions regarding macros automatically outputting table of content data</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Questions-regarding-macros-automatically-outputting-table-of/m-p/559884#M7584</link>
      <description>TOC is actually not correct. It is directory information and library members that are outputting. I need to put that to the log one time, not the 8 times it is done at the start of the program. It is also done later on.</description>
      <pubDate>Sat, 18 May 2019 14:58:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Questions-regarding-macros-automatically-outputting-table-of/m-p/559884#M7584</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2019-05-18T14:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Questions regarding macros automatically outputting table of content data</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Questions-regarding-macros-automatically-outputting-table-of/m-p/559888#M7585</link>
      <description>&lt;P&gt;The last picture that you copied into a PDF and then attached (why not just use the Insert Photo icon on the editor to put the picture in your post?) is the output of PROC CONTENTS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Find where the PROC CONTENTS code is.&amp;nbsp; If you need it to produce an output dataset you can add the NOPRINT option to stop it from also producing the report.&amp;nbsp; If you don't need it to produce an output dataset then just remove it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=sashelp.class out=contents noprint;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 May 2019 15:25:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Questions-regarding-macros-automatically-outputting-table-of/m-p/559888#M7585</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-05-18T15:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Questions regarding macros automatically outputting table of content data</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Questions-regarding-macros-automatically-outputting-table-of/m-p/559892#M7586</link>
      <description>SAS is actually creating directory information and library member information not toc. I read the output window incorrectly. I need to turn this off somehow. Thank you for your reply. I am paying more attention to the log now.</description>
      <pubDate>Sat, 18 May 2019 15:16:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Questions-regarding-macros-automatically-outputting-table-of/m-p/559892#M7586</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2019-05-18T15:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Questions regarding macros automatically outputting table of content data</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Questions-regarding-macros-automatically-outputting-table-of/m-p/559895#M7588</link>
      <description>there is no proc contents code....Strange!</description>
      <pubDate>Sat, 18 May 2019 15:39:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Questions-regarding-macros-automatically-outputting-table-of/m-p/559895#M7588</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2019-05-18T15:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Questions regarding macros automatically outputting table of content data</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Questions-regarding-macros-automatically-outputting-table-of/m-p/559896#M7589</link>
      <description>&lt;P&gt;The CONTENTS statement inside of PROC DATASETS can generate PROC CONTENTS output also.&lt;/P&gt;</description>
      <pubDate>Sat, 18 May 2019 15:40:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Questions-regarding-macros-automatically-outputting-table-of/m-p/559896#M7589</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-05-18T15:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Questions regarding macros automatically outputting table of content data</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Questions-regarding-macros-automatically-outputting-table-of/m-p/559899#M7590</link>
      <description>Only one proc datasets in code, mmeans2 is called multiple times. How to modify?&lt;BR /&gt;&lt;BR /&gt;%macro mmeans2(dsname,varlst,stat);&lt;BR /&gt;proc datasets library=work; delete meansout; run;&lt;BR /&gt;proc means data=&amp;amp;dsname noprint;&lt;BR /&gt;  var &amp;amp;varlst;&lt;BR /&gt;  output out=meansout&lt;BR /&gt;     n=n nmiss=nmiss mean=mean Std=Std min=min max=max range=range&lt;BR /&gt;     sum=sum var=var uss=uss css=css Stderr=Stderr cv=cv&lt;BR /&gt;/*   skewness=skewness kurtosis=kurtosis sumwgt=sumwgt */&lt;BR /&gt;     t=t prt=prt;&lt;BR /&gt;run;&lt;BR /&gt;...</description>
      <pubDate>Sat, 18 May 2019 15:51:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Questions-regarding-macros-automatically-outputting-table-of/m-p/559899#M7590</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2019-05-18T15:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Questions regarding macros automatically outputting table of content data</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Questions-regarding-macros-automatically-outputting-table-of/m-p/559900#M7591</link>
      <description>&lt;P&gt;The easiest thing is to use PROC DELETE if you want to delete a dataset. Then code it clearer and it runs faster.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc delete data=work.meansout; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or you could add the NOLIST option to your PROC DATASETS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 May 2019 15:56:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Questions-regarding-macros-automatically-outputting-table-of/m-p/559900#M7591</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-05-18T15:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Questions regarding macros automatically outputting table of content data</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Questions-regarding-macros-automatically-outputting-table-of/m-p/559908#M7592</link>
      <description>Tom,&lt;BR /&gt;Thank you. I needed to learn to read what followed table of contents in the results window. I notice there is a contents noprint option to proc datasets. I did not seem to need it however.  5 stars! MM</description>
      <pubDate>Sat, 18 May 2019 16:55:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Questions-regarding-macros-automatically-outputting-table-of/m-p/559908#M7592</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2019-05-18T16:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Questions regarding macros automatically outputting table of content data</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Questions-regarding-macros-automatically-outputting-table-of/m-p/559909#M7593</link>
      <description>Where is this insert photo icon? Do I need to go interactive? Are you referring to a SAS U window?</description>
      <pubDate>Sat, 18 May 2019 17:08:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Questions-regarding-macros-automatically-outputting-table-of/m-p/559909#M7593</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2019-05-18T17:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Questions regarding macros automatically outputting table of content data</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Questions-regarding-macros-automatically-outputting-table-of/m-p/559911#M7594</link>
      <description>&lt;P&gt;It is right on the menu when editing your post.&amp;nbsp; Along with the Insert Code and Insert SAS Code buttons.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29625i5594578EC4C944F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 May 2019 17:35:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Questions-regarding-macros-automatically-outputting-table-of/m-p/559911#M7594</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-05-18T17:35:22Z</dc:date>
    </item>
  </channel>
</rss>

