<?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: sashelp for ods select all ? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/sashelp-for-ods-select-all/m-p/952593#M26786</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/468664"&gt;@hartwell&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hartwell_0-1733343520990.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102707iC74CC25FB61C5813/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hartwell_0-1733343520990.png" alt="hartwell_0-1733343520990.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the table produced by printing sashelp.vdest, which I don't think is enough info for me to restore their defaults after I exclude everything.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It is enough for the code you showed since all you needed to know was the value of the DESTINATION variable to generate your two statements.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods rtf exclude all;
ods rtf select all;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So assuming you want to first prevent output from going to the active destinations you could do something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  set sashelp.vdest;
  where dest ne 'OUTPUT';
  call execute(catx(' ','ods',destination,'exclude all;'));
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then add a similar step at the point where you want to start sending output their way again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you are getting confused and thought you would need to recreate the original ODS statement that defined the destination.&amp;nbsp; You would only need to do that if had run this command:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if your question meant that someone else had closed the RTF destination before your code ran then the only way to recreate it is to be like Big Jule in Guys and Dolls and "remember where they once was."&lt;/P&gt;</description>
    <pubDate>Thu, 05 Dec 2024 02:15:06 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2024-12-05T02:15:06Z</dc:date>
    <item>
      <title>sashelp for ods select all ?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/sashelp-for-ods-select-all/m-p/952553#M26780</link>
      <description>&lt;P&gt;I'm working on a macro that has to suppress some of its output using&lt;/P&gt;&lt;PRE&gt;ods rtf exclude all;&lt;/PRE&gt;&lt;P&gt;Under the assumption that the user was outputting to rtf (default user behavior for us), once this piece of the macro is done, it turns output back on using&lt;/P&gt;&lt;PRE&gt;ods rtf select all;&lt;/PRE&gt;&lt;P&gt;However, there are some use cases where the user was suppressing the printout of my macro outputs.&amp;nbsp; In this case, I'd like my code to determine what ods output the user had selected and return to that after the excluded portion of macro code runs.&amp;nbsp; Is there a sashelp/dictionary table that contains this information?&amp;nbsp; I've already looked through vstyle, voption,&amp;nbsp; vallopt, vrememb and didn't see anything specific that told me which state to revert to.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 18:59:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/sashelp-for-ods-select-all/m-p/952553#M26780</guid>
      <dc:creator>hartwell</dc:creator>
      <dc:date>2024-12-04T18:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: sashelp for ods select all ?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/sashelp-for-ods-select-all/m-p/952556#M26782</link>
      <description>&lt;P&gt;One method of doing this as you mentioned is to use the SASHELP.VDEST table. Does this work for you? Either in SQL using the Dictionary.vdest table or in the DATA step.&lt;/P&gt;
&lt;PRE&gt;data temp;
  set sashelp.vdest;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 20:06:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/sashelp-for-ods-select-all/m-p/952556#M26782</guid>
      <dc:creator>Chevell_sas</dc:creator>
      <dc:date>2024-12-04T20:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: sashelp for ods select all ?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/sashelp-for-ods-select-all/m-p/952558#M26783</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hartwell_0-1733343520990.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102707iC74CC25FB61C5813/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hartwell_0-1733343520990.png" alt="hartwell_0-1733343520990.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the table produced by printing sashelp.vdest, which I don't think is enough info for me to restore their defaults after I exclude everything.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 20:19:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/sashelp-for-ods-select-all/m-p/952558#M26783</guid>
      <dc:creator>hartwell</dc:creator>
      <dc:date>2024-12-04T20:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: sashelp for ods select all ?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/sashelp-for-ods-select-all/m-p/952574#M26784</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/468664"&gt;@hartwell&lt;/a&gt;&amp;nbsp;Sorry, I did not read closely enough. This information which is selected does not get stored in a location that can be retrieved. However, if you are interested in the selected information, you could in tandem create an ODS DOCUMENT with the selected information and replay this. See the following example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods rtf file="c:\temp\temp1.rtf";&lt;/P&gt;
&lt;P&gt;/* Print selected output and create an ODS Document with the selected output&amp;nbsp; */&lt;/P&gt;
&lt;P&gt;ods select all;&lt;BR /&gt;ods document name=temp;&lt;/P&gt;
&lt;P&gt;proc freq data=sashelp.class;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods select none;&lt;/P&gt;
&lt;P&gt;proc print data=sashelp.class;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods document close;&lt;BR /&gt;ods rtf close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/* Display the selected output */&lt;/P&gt;
&lt;P&gt;proc document name=test(update);&lt;BR /&gt;replay;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 20:50:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/sashelp-for-ods-select-all/m-p/952574#M26784</guid>
      <dc:creator>Chevell_sas</dc:creator>
      <dc:date>2024-12-04T20:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: sashelp for ods select all ?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/sashelp-for-ods-select-all/m-p/952578#M26785</link>
      <description>&lt;P&gt;I managed to find a way to get the info I needed from ods show.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc printto log="/dest/test.txt";
run;

ods show;

proc printto;
run;

data _null_;
    infile "/dest/test.txt";
    input ;
    lines=_infile_;
    if _n_ = 8 then do;
        call symputx('ODS_SHOW',_infile_);
    end;
run;

%let ODS_SHOW = %sysfunc(prxchange(s!Current OVERALL select list is: !!,1,&amp;amp;ODS_SHOW));&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Dec 2024 21:29:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/sashelp-for-ods-select-all/m-p/952578#M26785</guid>
      <dc:creator>hartwell</dc:creator>
      <dc:date>2024-12-04T21:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: sashelp for ods select all ?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/sashelp-for-ods-select-all/m-p/952593#M26786</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/468664"&gt;@hartwell&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hartwell_0-1733343520990.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102707iC74CC25FB61C5813/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hartwell_0-1733343520990.png" alt="hartwell_0-1733343520990.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the table produced by printing sashelp.vdest, which I don't think is enough info for me to restore their defaults after I exclude everything.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It is enough for the code you showed since all you needed to know was the value of the DESTINATION variable to generate your two statements.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods rtf exclude all;
ods rtf select all;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So assuming you want to first prevent output from going to the active destinations you could do something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  set sashelp.vdest;
  where dest ne 'OUTPUT';
  call execute(catx(' ','ods',destination,'exclude all;'));
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then add a similar step at the point where you want to start sending output their way again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you are getting confused and thought you would need to recreate the original ODS statement that defined the destination.&amp;nbsp; You would only need to do that if had run this command:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if your question meant that someone else had closed the RTF destination before your code ran then the only way to recreate it is to be like Big Jule in Guys and Dolls and "remember where they once was."&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 02:15:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/sashelp-for-ods-select-all/m-p/952593#M26786</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-12-05T02:15:06Z</dc:date>
    </item>
  </channel>
</rss>

