<?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: Output phreg hazard ratios without using ODS in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Output-phreg-hazard-ratios-without-using-ODS/m-p/536024#M26979</link>
    <description>&lt;P&gt;The command&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ODS _ALL_ close;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;closes all ods destinations. Reopen them later with&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ODS listing;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ODS HTML;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;etc.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Feb 2019 20:08:01 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2019-02-15T20:08:01Z</dc:date>
    <item>
      <title>Output phreg hazard ratios without using ODS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Output-phreg-hazard-ratios-without-using-ODS/m-p/535897#M26977</link>
      <description>&lt;P&gt;I'm using the NOPRINT option as I don't want much in the way of output in my production code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I do want the hazard ratios output as a dataset from PROC PHREG.&amp;nbsp; But when I set the NOPRINT option ODS doesn't create the dataset.&amp;nbsp; Without the NOPRINT option I get a humungous amount of information, that neither I nor the client wants.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to output the HRs to a dataset without using ODS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 16:31:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Output-phreg-hazard-ratios-without-using-ODS/m-p/535897#M26977</guid>
      <dc:creator>jones1901</dc:creator>
      <dc:date>2019-02-15T16:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Output phreg hazard ratios without using ODS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Output-phreg-hazard-ratios-without-using-ODS/m-p/535910#M26978</link>
      <description>&lt;P&gt;You can control the output with ODS SELECT/EXCLUDE. Remove NOPRINT and add an ODS SELECT for the the table of interest.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://sasnrd.com/sas-ods-trace-select-exclude/" target="_blank"&gt;http://sasnrd.com/sas-ods-trace-select-exclude/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/262161"&gt;@jones1901&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm using the NOPRINT option as I don't want much in the way of output in my production code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I do want the hazard ratios output as a dataset from PROC PHREG.&amp;nbsp; But when I set the NOPRINT option ODS doesn't create the dataset.&amp;nbsp; Without the NOPRINT option I get a humungous amount of information, that neither I nor the client wants.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to output the HRs to a dataset without using ODS?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 16:56:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Output-phreg-hazard-ratios-without-using-ODS/m-p/535910#M26978</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-15T16:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Output phreg hazard ratios without using ODS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Output-phreg-hazard-ratios-without-using-ODS/m-p/536024#M26979</link>
      <description>&lt;P&gt;The command&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ODS _ALL_ close;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;closes all ods destinations. Reopen them later with&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ODS listing;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ODS HTML;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;etc.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 20:08:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Output-phreg-hazard-ratios-without-using-ODS/m-p/536024#M26979</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-02-15T20:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Output phreg hazard ratios without using ODS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Output-phreg-hazard-ratios-without-using-ODS/m-p/536072#M26980</link>
      <description>&lt;P&gt;Thanks guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But these restrict the ODS output.&amp;nbsp; I don't mind how many datasets are shot out of PHREG with the ODS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the NOPRINT option because it stops stuff going to the output destination.&amp;nbsp; The downside of NOPRINT is that no ODS datasets can be produced (or at least, that's my understanding).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I like the lateral approach to the issue.&amp;nbsp; It's made me think... running SAS in batch, is it possible to use, say, PROC PRINTTO, to interrupt the program output's usual destination, then I run PHREG with the full nine yards of output going to a different (dummy) destination and enabling me to pick up the hazard ratios, and then switch back so that the output continues to run to its usual destination?&amp;nbsp; I've tried a few ways, but I can't see a way of doing it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much obliged to you for your ideas!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 21:57:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Output-phreg-hazard-ratios-without-using-ODS/m-p/536072#M26980</guid>
      <dc:creator>jones1901</dc:creator>
      <dc:date>2019-02-15T21:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Output phreg hazard ratios without using ODS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Output-phreg-hazard-ratios-without-using-ODS/m-p/536077#M26981</link>
      <description>&lt;P&gt;ODS SELECT/EXCLUDE controls the output written to the HTML/Listing destination, it doesn't affect anything from an OUT=statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS SELECT HAZARDRATIOS;

ODS output hazardratios=mydata;

proc phreg.....







.....

run;



ods select all;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I'm fairly certain that's what you're looking for here.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 22:09:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Output-phreg-hazard-ratios-without-using-ODS/m-p/536077#M26981</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-15T22:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Output phreg hazard ratios without using ODS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Output-phreg-hazard-ratios-without-using-ODS/m-p/536078#M26982</link>
      <description>&lt;P&gt;Oh, OK, that sounds the business, then.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll give that a go when I'm back at the desk.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nice one.&amp;nbsp; Ta.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 22:11:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Output-phreg-hazard-ratios-without-using-ODS/m-p/536078#M26982</guid>
      <dc:creator>jones1901</dc:creator>
      <dc:date>2019-02-15T22:11:17Z</dc:date>
    </item>
  </channel>
</rss>

