<?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 How to get information about opened ODS destinations and current styles? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-get-information-about-opened-ODS-destinations-and-current/m-p/242889#M15050</link>
    <description>&lt;P&gt;Is there any way to save the name of current style to macro variable? I want to write a macro that draw some graphics in specific style. That's why I want to save current state of opened destinations and their styles, change style to my macro's style, run macro and turn settings back to original. I have not found any function which returns current style name or&amp;nbsp;destination state (opened or not). Maybe there is another way to implement such mechanics or i missed something?&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jan 2016 10:39:29 GMT</pubDate>
    <dc:creator>lightmiker</dc:creator>
    <dc:date>2016-01-12T10:39:29Z</dc:date>
    <item>
      <title>How to get information about opened ODS destinations and current styles?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-get-information-about-opened-ODS-destinations-and-current/m-p/242889#M15050</link>
      <description>&lt;P&gt;Is there any way to save the name of current style to macro variable? I want to write a macro that draw some graphics in specific style. That's why I want to save current state of opened destinations and their styles, change style to my macro's style, run macro and turn settings back to original. I have not found any function which returns current style name or&amp;nbsp;destination state (opened or not). Maybe there is another way to implement such mechanics or i missed something?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 10:39:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-get-information-about-opened-ODS-destinations-and-current/m-p/242889#M15050</guid>
      <dc:creator>lightmiker</dc:creator>
      <dc:date>2016-01-12T10:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to get information about opened ODS destinations and current styles?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-get-information-about-opened-ODS-destinations-and-current/m-p/242893#M15051</link>
      <description>&lt;P&gt;There is a view in SASHELP which holds the output destinations and the style associated with them. &amp;nbsp;Do:&lt;/P&gt;
&lt;PRE&gt;data test;
  set sashelp.vdest;
run;&lt;/PRE&gt;
&lt;P&gt;And you can see them. &amp;nbsp;I would however question why you have programs which need to output things, when destinations already exist. &amp;nbsp;Sounds a bit to overcomplex. &amp;nbsp;Each program, or output component should specify its own output parameters, it keesp the information encapsulated. &amp;nbsp;Otherwise whoever has to use your code later on then has to trawl through other code trying to figure out what is going on. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 10:57:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-get-information-about-opened-ODS-destinations-and-current/m-p/242893#M15051</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-01-12T10:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to get information about opened ODS destinations and current styles?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-get-information-about-opened-ODS-destinations-and-current/m-p/242894#M15052</link>
      <description>&lt;P&gt;Thanks, that's exactly what I need. My macro draws one graph with specific colors and fonts. I want that settings to be used only for that specific graph. That's why I decided to isolate that temporary change of style within the macro. I dont want to specify that temporary style by hands every time I run macro.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 11:08:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-get-information-about-opened-ODS-destinations-and-current/m-p/242894#M15052</guid>
      <dc:creator>lightmiker</dc:creator>
      <dc:date>2016-01-12T11:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get information about opened ODS destinations and current styles?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-get-information-about-opened-ODS-destinations-and-current/m-p/242895#M15053</link>
      <description>&lt;P&gt;Not sure I am following you on the process there. &amp;nbsp;I would always specify before any output procedure, the destination options, style etc. even if calling a macro to do the graph, e.g.&lt;/P&gt;
&lt;PRE&gt;%macro draw_graph();
   proc sgplot...;
%mend draw_graph;

ods _all_ close;
ods rtf file="...\file.rtf" style=statistical;
%draw_graph;
ods rtf close;&lt;/PRE&gt;
&lt;P&gt;In the above code, I call a macro, but the file setup and such like is done by me, I would never rely on what is already there, or try to revert to it after the fact.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 11:21:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-get-information-about-opened-ODS-destinations-and-current/m-p/242895#M15053</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-01-12T11:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to get information about opened ODS destinations and current styles?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-get-information-about-opened-ODS-destinations-and-current/m-p/242897#M15054</link>
      <description>&lt;P&gt;I got your point. Maybe I should to save my macro style as permanent and manually set it before calling the macro to make things clear... Anyway thanks for helping with&amp;nbsp;sashelp.vdest. It is a new stuff for me &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 11:30:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-get-information-about-opened-ODS-destinations-and-current/m-p/242897#M15054</guid>
      <dc:creator>lightmiker</dc:creator>
      <dc:date>2016-01-12T11:30:23Z</dc:date>
    </item>
  </channel>
</rss>

