<?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: How to specify the content to be displayed in the Result Window? in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/How-to-specify-the-content-to-be-displayed-in-the-Result-Window/m-p/523247#M6761</link>
    <description>&lt;P&gt;&lt;SPAN&gt;With the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="ph"&gt;Automated Test &lt;A href="https://datavisitor.com/app-development-platforms/" target="_blank"&gt;Framework&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;(ATF), you create and run automated tests on your&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="ph"&gt;ServiceNow&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;instance. When you upgrade or modify an instance, run these tests to confirm that the instance still works as designed. Read &lt;A href="https://docs.servicenow.com/bundle/london-application-development/page/administer/auto-test-framework/concept/atf-overview.html" target="_blank"&gt;here&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 22 Dec 2018 11:01:27 GMT</pubDate>
    <dc:creator>micahwilliams12</dc:creator>
    <dc:date>2018-12-22T11:01:27Z</dc:date>
    <item>
      <title>How to specify the content to be displayed in the Result Window?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-specify-the-content-to-be-displayed-in-the-Result-Window/m-p/523241#M6760</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Data1;
do ID=1 to 63;

do Outcome=1 to 0 by -1;
input Gall Hyper @@;
output;
end;
end;
datalines;
0 0 0 0 0 0 0 0 0 1 0 1 0 0 1 0 1 0 0 1
0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 1 1 0 0 1 1 0 1 0 1 0 0 1
0 1 0 0 0 0 1 1 0 0 1 1 0 0 0 1 0 1 0 0
0 0 1 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0
0 0 0 1 1 0 0 1 0 0 0 1 1 0 0 0 0 1 0 0
0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 0 1 1 1 1
0 0 0 1 0 1 0 0 0 1 0 1 0 1 0 1 0 1 0 0
0 0 0 0 0 1 1 0 0 0 0 1 0 0 0 0 1 0 0 0
0 0 0 0 1 1 0 0 0 1 0 0 0 0 0 0 0 1 0 1
0 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 1 0 0 0
0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 1 1 0 0
1 0 1 0 0 1 0 0 1 0 0 0
;

proc logistic data=Data1;
strata ID;
model outcome(event='1')=Gall;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;On default, the Result Window displayed 7 tables&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WX20181222-173632.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25863i75C57C153F58CC83/image-size/large?v=v2&amp;amp;px=999" role="button" title="WX20181222-173632.png" alt="WX20181222-173632.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to manage to display one or some rather than all of the 7 tables?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Dec 2018 09:38:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-specify-the-content-to-be-displayed-in-the-Result-Window/m-p/523241#M6760</guid>
      <dc:creator>hulinhui</dc:creator>
      <dc:date>2018-12-22T09:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify the content to be displayed in the Result Window?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-specify-the-content-to-be-displayed-in-the-Result-Window/m-p/523247#M6761</link>
      <description>&lt;P&gt;&lt;SPAN&gt;With the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="ph"&gt;Automated Test &lt;A href="https://datavisitor.com/app-development-platforms/" target="_blank"&gt;Framework&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;(ATF), you create and run automated tests on your&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="ph"&gt;ServiceNow&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;instance. When you upgrade or modify an instance, run these tests to confirm that the instance still works as designed. Read &lt;A href="https://docs.servicenow.com/bundle/london-application-development/page/administer/auto-test-framework/concept/atf-overview.html" target="_blank"&gt;here&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Dec 2018 11:01:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-specify-the-content-to-be-displayed-in-the-Result-Window/m-p/523247#M6761</guid>
      <dc:creator>micahwilliams12</dc:creator>
      <dc:date>2018-12-22T11:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify the content to be displayed in the Result Window?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-specify-the-content-to-be-displayed-in-the-Result-Window/m-p/523272#M6763</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt; With the Output Delivery System, you generally use ODS SELECT or ODS EXCLUDE to only see some of the output created by a procedure.&lt;BR /&gt;&lt;BR /&gt; To use ODS SELECT, you have to know the output table names that ODS will create. You do this using ODS TRACE ON/OFF. Once you know the table names for your procedure of interest, then you either SELECT or EXCLUDE them. And, you can also use these same ODS table names for your procedure to create output datasets for one or more than one table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Here's an example of using ODS TRACE with PROC UNIVARIATE:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ods_trace_univ.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25873iCA85F36F8FDED91A/image-size/large?v=v2&amp;amp;px=999" role="button" title="ods_trace_univ.png" alt="ods_trace_univ.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt; Here's some code to try. It uses PROC UNIVARIATE, but the concepts would be the same for PROC LOGISTIC or any other procedure that produces output. Let's say that I want to create and name an HTML and an RTF file, but I want to use ODS SELECT to choose which output table or output object goes to which destination.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title; footnote;

** Before you start, find the TABLE names created by PROC UNIVARIATE;
** look in the log to see the TABLE names. For SAS/STAT procedures, you can;
** also look in the documentation for the procedure;
ods html;
ods trace on / label;
proc univariate data=sashelp.class;
var height;
run;
ods trace off;

  
** 1) just do ODS SELECT for HTML AND RTF;
** to get only two objects into the output files for HTML and RTF;
** ODS SELECT without a destination sends the objects to ALL open destinations;
ods html path='c:\temp' file='get_two.html';
ods rtf file='c:\temp\get_two.rtf';
ods select moments basicmeasures;
proc univariate data=sashelp.class;
var height;
run;
ods html close;
ods rtf close;

** 2) now send moments table to HTML;
** and send basicmeasures table to RTF;
ods html path='c:\temp' file='get_moments.html';
ods rtf file='c:\temp\get_basicmeasures.rtf';
ods html select moments;
ods rtf select basicmeasures;
proc univariate data=sashelp.class;
var height;
run;
ods html close;
ods rtf close;

** 3) now make datasets for moments and basic measures;
ods html;
ods output moments=work.mymoments basicmeasures=work.mymeasures;
proc univariate data=sashelp.class;
var height;
run;


** 4) print the datasets created by ods output;
ods html path='c:\temp' file='from_data.html';
proc print data=work.mymoments;
title 'MyMoments';
run;

proc print data=work.mymeasures;
title 'MyMeasures';
run;
ods html close;
title;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Hope this helps explain the concepts of controlling the output from your procedures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Sat, 22 Dec 2018 15:14:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-specify-the-content-to-be-displayed-in-the-Result-Window/m-p/523272#M6763</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-12-22T15:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify the content to be displayed in the Result Window?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-specify-the-content-to-be-displayed-in-the-Result-Window/m-p/523293#M6764</link>
      <description>&lt;P&gt;Very&amp;nbsp;helpful, Many many thanks to Cynthia.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Dec 2018 18:29:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-specify-the-content-to-be-displayed-in-the-Result-Window/m-p/523293#M6764</guid>
      <dc:creator>hulinhui</dc:creator>
      <dc:date>2018-12-22T18:29:55Z</dc:date>
    </item>
  </channel>
</rss>

