<?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: K-M plot: need help getting %ProvideSurvivalMacros and %CompileSurvivalTemplates to work in STAT in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/K-M-plot-need-help-getting-ProvideSurvivalMacros-and/m-p/563961#M18251</link>
    <description>&lt;P&gt;Thank you. It is helpful.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2019 04:30:04 GMT</pubDate>
    <dc:creator>Andrewpass</dc:creator>
    <dc:date>2019-06-06T04:30:04Z</dc:date>
    <item>
      <title>K-M plot: need help getting %ProvideSurvivalMacros and %CompileSurvivalTemplates to work in STAT14.3</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/K-M-plot-need-help-getting-ProvideSurvivalMacros-and/m-p/563594#M18226</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am running %ProvideSurvivalMacros&amp;nbsp;and %CompileSurvivalTemplate. After I renew the license, it does not work now. I paste&amp;nbsp; information regarding my system and&amp;nbsp;errors/warning encountered. I appreciate any advice&amp;nbsp;and resolution&amp;nbsp;in advance.&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS (r) Proprietary Software 9.4 (TS1M5)&lt;/P&gt;
&lt;P&gt;NOTE: Updated analytical products:&lt;/P&gt;
&lt;P&gt;SAS/STAT 14.3&lt;/P&gt;
&lt;P&gt;SAS/IML 14.3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Questions&lt;/U&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;_null_&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; url = //support.sas.com/documentation/onlinedoc/stat/ex_code/143;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;infile&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#800080"&gt;"http:&amp;amp;url/templft.html"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; device=url;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;file&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#800080"&gt;'macros.tmp'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;retain&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; pre &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt; _infile_ = tranwrd(_infile_, &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;'&amp;amp;amp;'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;, &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;'&amp;amp;'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt; _infile_ = tranwrd(_infile_, &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;'&amp;amp;lt;'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; , &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;'&amp;lt;'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; index(_infile_, &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;'&amp;lt;/pre&amp;gt;'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; pre = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; pre &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;put&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#0000ff"&gt;_infile_&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; index(_infile_, &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;'&amp;lt;pre&amp;gt;'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) &lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; pre = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2" color="#0000ff"&gt;%inc&lt;/FONT&gt; &lt;FONT face="Courier New" size="2" color="#800080"&gt;'macros.tmp'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; / nosource;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%&lt;STRONG&gt;&lt;I&gt;ProvideSurvivalMacros&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#ff0000"&gt;-&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#ff0000"&gt;WARNING: Apparent invocation of macro PROVIDESURVIVALMACROS not resolved.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#ff0000"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 17:54:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/K-M-plot-need-help-getting-ProvideSurvivalMacros-and/m-p/563594#M18226</guid>
      <dc:creator>Andrewpass</dc:creator>
      <dc:date>2019-06-05T17:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: K-M plot: need help getting %ProvideSurvivalMacros and %CompileSurvivalTemplates to work in STAT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/K-M-plot-need-help-getting-ProvideSurvivalMacros-and/m-p/563805#M18242</link>
      <description>&lt;P&gt;How are you running the program? EG? SAS Studio? Classic Windowing system?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It could be a permission problem. When you run the DATA _NULL_ step, check the SAS log. You should see something like&lt;/P&gt;
&lt;P&gt;NOTE: The file 'macros.tmp' is:&lt;BR /&gt;Filename=C:\Users\apass\macros.tmp,&lt;/P&gt;
&lt;P&gt;Check to make sure there are no errors in the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't have to run the DATA _NULL_ step. You can just cut/paste the macro into your active session.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or, you can use a text editor to store the file anywhere.you want. For example,&lt;/P&gt;
&lt;P&gt;1. create the file&amp;nbsp;&lt;/P&gt;
&lt;P&gt;C:\Downloads\KMmacros.sas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Cut and paste the text of the macro, which is available at&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/onlinedoc/stat/ex_code/143/templft.html" target="_blank"&gt;http://support.sas.com/documentation/onlinedoc/stat/ex_code/143/templft.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Save the file.&lt;/P&gt;
&lt;P&gt;4. Inside your SAS session, run&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%inc "C:\Downloads\KMmacros.sas";&lt;/P&gt;
&lt;P&gt;%ProvideSurvivalMacros&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 18:06:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/K-M-plot-need-help-getting-ProvideSurvivalMacros-and/m-p/563805#M18242</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-06-05T18:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: K-M plot: need help getting %ProvideSurvivalMacros and %CompileSurvivalTemplates to work in STAT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/K-M-plot-need-help-getting-ProvideSurvivalMacros-and/m-p/563961#M18251</link>
      <description>&lt;P&gt;Thank you. It is helpful.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 04:30:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/K-M-plot-need-help-getting-ProvideSurvivalMacros-and/m-p/563961#M18251</guid>
      <dc:creator>Andrewpass</dc:creator>
      <dc:date>2019-06-06T04:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: K-M plot: need help getting %ProvideSurvivalMacros and %CompileSurvivalTemplates to work in STAT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/K-M-plot-need-help-getting-ProvideSurvivalMacros-and/m-p/625627#M19485</link>
      <description>&lt;P&gt;great works perfectly thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 16:08:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/K-M-plot-need-help-getting-ProvideSurvivalMacros-and/m-p/625627#M19485</guid>
      <dc:creator>Erdachew</dc:creator>
      <dc:date>2020-02-18T16:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: K-M plot: need help getting %ProvideSurvivalMacros and %CompileSurvivalTemplates to work in STAT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/K-M-plot-need-help-getting-ProvideSurvivalMacros-and/m-p/697084#M20705</link>
      <description>&lt;P&gt;Thankyou so much for this solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also used it,&amp;nbsp; now I see that the CL limits in the summary table is zero, any advice on how to fix the zeros?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 09:37:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/K-M-plot-need-help-getting-ProvideSurvivalMacros-and/m-p/697084#M20705</guid>
      <dc:creator>Jacobs</dc:creator>
      <dc:date>2020-11-06T09:37:59Z</dc:date>
    </item>
  </channel>
</rss>

