<?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: Reverse damage from proc template in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reverse-damage-from-proc-template/m-p/902600#M356707</link>
    <description>I ran this otb code. However, my proc lifetest is still giving me an error which it does not give on another computer where I did not run proc template.</description>
    <pubDate>Fri, 10 Nov 2023 23:12:19 GMT</pubDate>
    <dc:creator>pink_poodle</dc:creator>
    <dc:date>2023-11-10T23:12:19Z</dc:date>
    <item>
      <title>Reverse damage from proc template</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reverse-damage-from-proc-template/m-p/902430#M356633</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I was trying to change an axis on proc life test KM plot, and I ran this code from another post:&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;

 define statgraph Stat.Lifetest.Graphics.ProductLimitSurvival; 
  begingraph;
   layout overlay /
    /*xaxisopts=(label="Incidence of DM" linearopts=(viewmin=0.5 viewmax=1 tickvaluelist=(0.5 0.6 0.7 0.8 0.9 1.0)));*/
	yaxisopts=(label="Incidence of DM" linearopts=(viewmin=0 viewmax=120 tickvaluelist=(20 40 60 80 100 120)));
   endlayout;
  endgraph;
 end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
Now my proc lifetest does not work as it used to, tells me there is not enough data for this graph even though the dataset is the same and it worked before. Please advice how to reverse this/ come back to previous settings.&lt;/DIV&gt;
&lt;DIV&gt;Many thanks!&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Nov 2023 02:17:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reverse-damage-from-proc-template/m-p/902430#M356633</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2023-11-10T02:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse damage from proc template</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reverse-damage-from-proc-template/m-p/902435#M356635</link>
      <description>&lt;P&gt;I've never touched this template in my environment and though the attached file should reflect otb code.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;=syshostinfolong;
%put &amp;amp;=sysvlong;

proc template;
  source Stat.Lifetest.Graphics.ProductLimitSurvival 
    /file="c:\temp\ProductLimitSurvival.sas"
    ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;28 %put &amp;amp;=syshostinfolong;&lt;BR /&gt;SYSHOSTINFOLONG=X64_10PRO WIN 10.0.19041 Workstation&lt;BR /&gt;29 %put &amp;amp;=sysvlong;&lt;BR /&gt;SYSVLONG=9.04.01M7P080520&lt;BR /&gt;30 &lt;BR /&gt;31 proc template;&lt;BR /&gt;32 source Stat.Lifetest.Graphics.ProductLimitSurvival&lt;BR /&gt;33 /file="c:\temp\ProductLimitSurvival.sas"&lt;BR /&gt;34 ;&lt;BR /&gt;NOTE: Path 'Stat.Lifetest.Graphics.ProductLimitSurvival' is in: SASHELP.TMPLSTAT_EN (via SASHELP.TMPLMST).&lt;BR /&gt;35 run;&lt;BR /&gt;NOTE: PROCEDURE TEMPLATE used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Nov 2023 04:32:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reverse-damage-from-proc-template/m-p/902435#M356635</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-11-10T04:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse damage from proc template</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reverse-damage-from-proc-template/m-p/902597#M356704</link>
      <description>Could you please give more details what is otb code and what it is for?</description>
      <pubDate>Fri, 10 Nov 2023 21:31:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reverse-damage-from-proc-template/m-p/902597#M356704</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2023-11-10T21:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse damage from proc template</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reverse-damage-from-proc-template/m-p/902598#M356705</link>
      <description>OTB is "Out of the Box", so you can run the code posted to recreate the original template.</description>
      <pubDate>Fri, 10 Nov 2023 22:36:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reverse-damage-from-proc-template/m-p/902598#M356705</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-11-10T22:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse damage from proc template</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reverse-damage-from-proc-template/m-p/902599#M356706</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
delete Stat.Lifetest.Graphics.ProductLimitSurvival /
store=sasuser.templat;
delete Stat.Lifetest.Graphics.ProductLimitSurvival2 /
store=sasuser.templat;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming you modified templates in sasuser, try to delete them using the code above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Everything you ever wanted to know about modifying the KM plot is here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/onlinedoc/stat/151/kaplan.pdf" target="_blank"&gt;https://support.sas.com/documentation/onlinedoc/stat/151/kaplan.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 23:11:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reverse-damage-from-proc-template/m-p/902599#M356706</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2023-11-10T23:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse damage from proc template</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reverse-damage-from-proc-template/m-p/902600#M356707</link>
      <description>I ran this otb code. However, my proc lifetest is still giving me an error which it does not give on another computer where I did not run proc template.</description>
      <pubDate>Fri, 10 Nov 2023 23:12:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reverse-damage-from-proc-template/m-p/902600#M356707</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2023-11-10T23:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse damage from proc template</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reverse-damage-from-proc-template/m-p/902612#M356710</link>
      <description>&lt;P&gt;Ensure that you create a new SAS session in order to avoid any impact from "leftovers".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If things on your two computers still work differently then extract the template from your other computer (using the code I've shared) and compare it to the one from your machine where you're encountering issues. This to ensure the two templates are really the same.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Nov 2023 01:23:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reverse-damage-from-proc-template/m-p/902612#M356710</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-11-11T01:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse damage from proc template</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reverse-damage-from-proc-template/m-p/902677#M356741</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16777"&gt;@WarrenKuhfeld&lt;/a&gt;,&lt;BR /&gt;This is a great idea, but gave me another error that lock is not available on sas.templat.itemstore.</description>
      <pubDate>Sat, 11 Nov 2023 20:42:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reverse-damage-from-proc-template/m-p/902677#M356741</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2023-11-11T20:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse damage from proc template</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reverse-damage-from-proc-template/m-p/902682#M356744</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/235176"&gt;@pink_poodle&lt;/a&gt;&amp;nbsp;Given you've got an environment where things work and to test the theory that the issue is with template&amp;nbsp;Stat.Lifetest.Graphics.ProductLimitSurvival you could do the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the environment/computer where things work:&lt;/P&gt;
&lt;P&gt;1. Export the template definition from your working environment to a file&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let source_code=c:\temp\ProductLimitSurvival.sas;
proc template;
  source Stat.Lifetest.Graphics.ProductLimitSurvival 
    /file="&amp;amp;source_code"
    ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the environment/computer where things don't work:&lt;/P&gt;
&lt;P&gt;2. Store the file with the template definition to a places where it's accessible from your SAS session.&lt;/P&gt;
&lt;P&gt;3. Create a new SAS session.&lt;/P&gt;
&lt;P&gt;4. Add a new SAS Session specific item store at the beginning of the template search path and compile the template into there&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let source_code=c:\temp\ProductLimitSurvival.sas;

ods path reset;
ods path show;

/* add work.mystore at beginning of item store search path */
ods path (prepend) work.mystore(update);
ods path show; 

/* create item Stat.Lifetest.Graphics.ProductLimitSurvival in item store work.mystore */
proc template;
  %include "&amp;amp;source_code" /source2;
run;

/* list newly created item */
proc template;
   list Stat.Lifetest.Graphics / store=work.mystore;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1699754483411.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/89683i086626B35B7DECCC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1699754483411.png" alt="Patrick_0-1699754483411.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;5. Execute your &lt;SPAN&gt;proc life test&amp;nbsp;&lt;/SPAN&gt;code. If it still shows the same error then the issue you observe is not related to&amp;nbsp;Stat.Lifetest.Graphics.ProductLimitSurvival&lt;/P&gt;</description>
      <pubDate>Sun, 12 Nov 2023 02:05:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reverse-damage-from-proc-template/m-p/902682#M356744</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-11-12T02:05:02Z</dc:date>
    </item>
  </channel>
</rss>

