Error with ODS and Proc Template - RunSubmit.com most recent 30 from http://www.runsubmit.com2010-07-29T20:04:25Zhttp://www.runsubmit.com/feeds/question/179http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://www.runsubmit.com/questions/179/error-with-ods-and-proc-templateError with ODS and Proc TemplateSAS-L2009-12-29T22:56:31Z2009-12-29T22:59:39Z
<p>I am trying to create a custom template within a program run via Enterprise Guide. However, no matter what I do, I keep getting an error:</p>
<pre><code>ERROR: Template 'MyTemplate' was unable to write to template store!
</code></pre>
<p>Is this a permissions issue of some kind?</p>
http://www.runsubmit.com/questions/179/error-with-ods-and-proc-template/180#180Answer by jay.l.stevens for Error with ODS and Proc Templatejay.l.stevens2009-12-29T22:59:39Z2009-12-29T22:59:39Z<p>Yes. This is a permissions issue. Using the Workspace Server (i.e. connecting via Enterprise Guide, even if its Locally) causes all SAS sessions to run with the RSASUSER option (which enables sharing of the SASUSER lib).</p>
<p>Add this before your <code>PROC TEMPLATE</code> code. It will set up the default path for templates to a work area.</p>
<pre><code>ODS PATH work.templat(update) sasuser.templat(read)
sashelp.tmplmst(read);
</code></pre>