<?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: Proc life test graph output in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-life-test-graph-output/m-p/739829#M230977</link>
    <description>That is not your full log.</description>
    <pubDate>Fri, 07 May 2021 16:15:08 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-05-07T16:15:08Z</dc:date>
    <item>
      <title>Proc life test graph output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-life-test-graph-output/m-p/739649#M230887</link>
      <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created a kaplan-meier curve using proc lifetest. I just need to output&amp;nbsp; the graph but it's given me headach. This code outputs all tables and graph but I need just the graph.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also adjusted the template using: %ProvideSurvivalMacros . I guess this can also be set in there, if yes,&amp;nbsp; how? I have been searching the whole day on this issue. Please help. The gout option seems not to be the right approach.&lt;/P&gt;
&lt;PRE&gt;ods pdf output='mypath\filename.pdf';
ods graphics on;
proc lifetest data=mydat plots =(s(ATRISK )) ;
time T*censor(0);
strata group;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 21:16:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-life-test-graph-output/m-p/739649#M230887</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-05-06T21:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc life test graph output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-life-test-graph-output/m-p/739650#M230888</link>
      <description>&lt;P&gt;GOUT pertains to SAS/GRAPH you're using ODS GRAPHICS which is an entirely different system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS SELECT/EXCLUDE&amp;nbsp; is what you need.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_lifetest_details86.htm" target="_self"&gt;table/plot names in the documentation&lt;/A&gt; for the procedure, under Details&amp;gt;ODS Table Names/ODS Graphics.&lt;/P&gt;
&lt;P&gt;You need to add something similar to :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS SELECT plotName;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should work for you:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf output='mypath\filename.pdf';
ods graphics on;

ods select survivalPlot;

proc lifetest data=mydat plots =(s(ATRISK )) ;
time T*censor(0);
strata group;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/168930"&gt;@Anita_n&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created a kaplan-meier curve using proc lifetest. I just need to output&amp;nbsp; the graph but it's given me headach. This code outputs all tables and graph but I need just the graph.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also adjusted the template using: %ProvideSurvivalMacros . I guess this can also be set in there, if yes,&amp;nbsp; how? I have been searching the whole day on this issue. Please help. The gout option seems not to be the right approach.&lt;/P&gt;
&lt;PRE&gt;ods pdf output='mypath\filename.pdf';
ods graphics on;
proc lifetest data=mydat plots =(s(ATRISK )) ;
time T*censor(0);
strata group;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 21:21:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-life-test-graph-output/m-p/739650#M230888</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-05-06T21:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Proc life test graph output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-life-test-graph-output/m-p/739769#M230943</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;Thanks for that. I tried that but I got this error message:&lt;/P&gt;
&lt;PRE&gt;ERROR 22-322: Syntax error, one of the following is expected: ;, (, ACCESSIBLE,
              ACCESSIBLE_IDENTIFIER, ANCHOR, AUTHOR, BACKGROUND, BASE, BODY, BOOKMARK,
              BOOKMARKGEN, BOOKMARKLIST, BOX_SIZING, CLOSE, COLOR, COLUMNS, COMPRESS, CONTENTS,
              CSSSTYLE, DISPLAY, DOM, DPI, EXCLUDE, FILE, FONTSCALE, GFOOTNOTE, GTITLE, HOST,
              KEYWORDS, NAMED_DEST, NEWFILE, NOACCESSIBLE, NOACCESSIBLE_IDENTIFIER, NOBACKGROUND,
              NOBOOKMARKGEN, NOBOOKMARKLIST, NOCOLOR, NOCONTENTS, NOGFOOTNOTE, NOGTITLE,
              NOPDFNOTE, NOTOC, PACKAGE, PCL, PDF, PDFMARK, PDFNOTE, PDFTOC, PRINTER, PS, SAS,
              SELECT, SGE, SHOW, STARTPAGE, STYLE, SUBJECT, TEXT, TITLE, UNIFORM.
ERROR 76-322: Syntax error, statement will be ignored.
466  ods graphics on;
467  ods select survivalPlot;
468  proc lifetest data=mydata plots =(s(ATRISK )) ;
469  time T*censor(0);
470  strata GROUP;
471  run;

&lt;/PRE&gt;
&lt;P&gt;I think it has a problem with the &lt;STRONG&gt;ods pdf output&lt;/STRONG&gt; statement because output is underlined as error. But the&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;ods select survivalPlot;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;worked. only I had no pdf file outputted&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 13:38:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-life-test-graph-output/m-p/739769#M230943</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-05-07T13:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc life test graph output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-life-test-graph-output/m-p/739810#M230962</link>
      <description>That error is BEFORE the code I suggested so isn't related to the problem you're describing or the solution I suggested. Show the full code, especially the code before the ERROR. &lt;BR /&gt;&lt;BR /&gt;I assumed you posted working code but realizing now your ODS PDF statement is wrong and you should have been getting errors before even though you said it was giving you output. &lt;BR /&gt;&lt;BR /&gt;ODS PDF requires a FILE= not OUTPUT=. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/n0mc4eolqoned0n16oy88mpj0e4g.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/n0mc4eolqoned0n16oy88mpj0e4g.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 May 2021 15:50:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-life-test-graph-output/m-p/739810#M230962</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-05-07T15:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc life test graph output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-life-test-graph-output/m-p/739820#M230970</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;yes, I also tried using &lt;STRONG&gt;ods pdf file="mypath\mydoc.pdf"&lt;/STRONG&gt;, this doesn't quite display an error but doesn't also output any file&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 16:07:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-life-test-graph-output/m-p/739820#M230970</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-05-07T16:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proc life test graph output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-life-test-graph-output/m-p/739826#M230974</link>
      <description>Show your full code and log.</description>
      <pubDate>Fri, 07 May 2021 16:09:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-life-test-graph-output/m-p/739826#M230974</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-05-07T16:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc life test graph output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-life-test-graph-output/m-p/739827#M230975</link>
      <description>Make sure to include the ODS PDF CLOSE statement as well. I don't see any in your code. Only when the file is closed is it 'created' for you to see.</description>
      <pubDate>Fri, 07 May 2021 16:10:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-life-test-graph-output/m-p/739827#M230975</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-05-07T16:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Proc life test graph output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-life-test-graph-output/m-p/739828#M230976</link>
      <description>&lt;PRE&gt;ods pdf file='mypath\mydoc.pdf';
ods graphics on;
ods select survivalPlot;
proc lifetest data=mydat plots =(s(ATRISK )) ;
time T*censor(0);
strata group;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;NOTE: The LOGLOG transform is used to compute the confidence limits for the quartiles of the&lt;BR /&gt;survivor distribution. To suppress using this transform, specify CONFTYPE=LINEAR in the PROC&lt;BR /&gt;LIFETEST statement.&lt;BR /&gt;NOTE: Used was: PROZEDUR LIFETEST - (Total processing time):&lt;BR /&gt;real time 1.00 seconds&lt;BR /&gt;cpu time 0.21 seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 16:14:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-life-test-graph-output/m-p/739828#M230976</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-05-07T16:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc life test graph output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-life-test-graph-output/m-p/739829#M230977</link>
      <description>That is not your full log.</description>
      <pubDate>Fri, 07 May 2021 16:15:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-life-test-graph-output/m-p/739829#M230977</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-05-07T16:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc life test graph output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-life-test-graph-output/m-p/739834#M230981</link>
      <description>&lt;P&gt;yes, you are right, it worked now. I really forgot to add ods pdf close. Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 16:26:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-life-test-graph-output/m-p/739834#M230981</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-05-07T16:26:40Z</dc:date>
    </item>
  </channel>
</rss>

