<?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: ERROR: A lock is not available for TEMPLATE.TEMPLAT.ITEMSTOR. in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ERROR-A-lock-is-not-available-for-TEMPLATE-TEMPLAT-ITEMSTOR/m-p/298106#M16884</link>
    <description>&lt;P&gt;What are you trying to do? I assume that generally folks don't update a template very frequently, and&amp;nbsp;generally&amp;nbsp;multiple people don't update the same template at the same time.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Sep 2016 17:55:39 GMT</pubDate>
    <dc:creator>Tim_SAS</dc:creator>
    <dc:date>2016-09-13T17:55:39Z</dc:date>
    <item>
      <title>ERROR: A lock is not available for TEMPLATE.TEMPLAT.ITEMSTOR.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ERROR-A-lock-is-not-available-for-TEMPLATE-TEMPLAT-ITEMSTOR/m-p/298046#M16877</link>
      <description>&lt;P&gt;I have placed an itemstore in a shared folder and added the following to the autoexec.sas:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="4"&gt;&lt;FONT color="#0000ff"&gt;libname&lt;/FONT&gt; __Tmplt_&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#800080" face="courier new,courier" size="4"&gt;&lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "L:\PROD\SHARE\SAS\TEMPLATES"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="4"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;ods&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;path&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; ( &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;prepend&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; )&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;__Tmplt_.templat&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;( &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;read&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; )&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attempting to add a new style resulted in:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: A lock is not available for TEMPLATE.TEMPLAT.ITEMSTOR.&lt;BR /&gt;ERROR: Template 'Styles.Fda_arial' was unable to write to template store!&lt;/P&gt;
&lt;P&gt;This concerns me for several reasons; can the programmers uses the styles if other programmers have SAS open and why would their read access lock the file (which almost seems reasonable)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An obvious solution would be to add the style definition to the autoexec.sas and write it to the (temporary)&lt;/P&gt;
&lt;P&gt;SASUSER.TEMPLAT(UPDATE).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I appreciate any suggestions or references.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 14:01:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ERROR-A-lock-is-not-available-for-TEMPLATE-TEMPLAT-ITEMSTOR/m-p/298046#M16877</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2016-09-13T14:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: A lock is not available for TEMPLATE.TEMPLAT.ITEMSTOR.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ERROR-A-lock-is-not-available-for-TEMPLATE-TEMPLAT-ITEMSTOR/m-p/298094#M16882</link>
      <description>&lt;P&gt;No user can update the template store while any user has the template store open for reading. You're right, if you need to make updates to an template&amp;nbsp;store, do it in SASUSER (or some other, non-shared, library) until you can get sole access the shared template store.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 16:29:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ERROR-A-lock-is-not-available-for-TEMPLATE-TEMPLAT-ITEMSTOR/m-p/298094#M16882</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2016-09-13T16:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: A lock is not available for TEMPLATE.TEMPLAT.ITEMSTOR.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ERROR-A-lock-is-not-available-for-TEMPLATE-TEMPLAT-ITEMSTOR/m-p/298104#M16883</link>
      <description>&lt;P&gt;Thanks, Tim.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So my choices are to change the access to (UPDATE) or put the styles in the SASUSER.TEMPLATE of each user.&amp;nbsp; I wonder how the big shops configure it?&amp;nbsp; At least when it is in the AUTOEXEC.SAS, then I can tell from the log of the program whether they template has changed.&amp;nbsp; Otherwise, an external program could update the shared resource with an obvious sign in the current program's log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 17:41:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ERROR-A-lock-is-not-available-for-TEMPLATE-TEMPLAT-ITEMSTOR/m-p/298104#M16883</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2016-09-13T17:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: A lock is not available for TEMPLATE.TEMPLAT.ITEMSTOR.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ERROR-A-lock-is-not-available-for-TEMPLATE-TEMPLAT-ITEMSTOR/m-p/298106#M16884</link>
      <description>&lt;P&gt;What are you trying to do? I assume that generally folks don't update a template very frequently, and&amp;nbsp;generally&amp;nbsp;multiple people don't update the same template at the same time.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 17:55:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ERROR-A-lock-is-not-available-for-TEMPLATE-TEMPLAT-ITEMSTOR/m-p/298106#M16884</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2016-09-13T17:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: A lock is not available for TEMPLATE.TEMPLAT.ITEMSTOR.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ERROR-A-lock-is-not-available-for-TEMPLATE-TEMPLAT-ITEMSTOR/m-p/298110#M16885</link>
      <description>Hi:&lt;BR /&gt;  Here's my .02.&lt;BR /&gt;&lt;BR /&gt;  When I've had to share a template, I generally test it thoroughly and then when I know that no one else is using the shared drive, I will open a folder with UPDATE access on the shared drive to create the item store 1 time. Then, I put the LIBNAME statement and ODS PATH statement (with READ) access into service for myself and other programmers to use on a day-to-day basis. &lt;BR /&gt;  &lt;BR /&gt;  Generally, I recommend that the other programmers put the statements into their usual AUTOEXEC or startup program or if in EG, add it to their statements before a project.&lt;BR /&gt;&lt;BR /&gt;If EVERYONE points to the same 'L:' drive across the company, than using drive letters will work. But if one person can map it as an L drive and another person can map the shared folder as an S drive and someone else map it as the P drive, then using your drive letter may not work and you may have to use the network resource name (the machine name and folder) instead of the mapped drive folder.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Tue, 13 Sep 2016 18:11:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ERROR-A-lock-is-not-available-for-TEMPLATE-TEMPLAT-ITEMSTOR/m-p/298110#M16885</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-09-13T18:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: A lock is not available for TEMPLATE.TEMPLAT.ITEMSTOR.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ERROR-A-lock-is-not-available-for-TEMPLATE-TEMPLAT-ITEMSTOR/m-p/298120#M16887</link>
      <description>&lt;P&gt;The big issues is that even in this small shop, SAS is open, so it would always be locked.&amp;nbsp; Interestingly, since the configuration here keeps the directory for the SASUSER permanently, what I stated earlier was incorrect.&amp;nbsp; The user could update the style external to the program of interest and it would not be perceptible in the current log.&amp;nbsp; I guess one cannot get around this, but the risk should be neglible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wrote the following macro to check for the existence of a style in an itemstor and delete it if it exists:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/FONT&gt; m_u_delete_style&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp; ( style =&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp; &amp;nbsp;, store =&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp; ) ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp; %if&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;&lt;FONT color="#008080"&gt;&lt;FONT color="#008080"&gt;&lt;FONT color="#008080"&gt;store.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; ne &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;%str&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;()&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;%sysfunc&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;(exist( &amp;amp;&lt;FONT color="#008080"&gt;&lt;FONT color="#008080"&gt;&lt;FONT color="#008080"&gt;store.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; , itemstor )) = &lt;STRONG&gt;&lt;FONT color="#008080"&gt;&lt;FONT color="#008080"&gt;&lt;FONT color="#008080"&gt;0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="courier new,courier" size="3"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp; %then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %do&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %put&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; ER&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;%str&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;(ROR: ) The itemstore &amp;amp;store. does not exist. ; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %goto&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; __END ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %end&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp; filename __st temp ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp; proc printto&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print = __st&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp; run ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp; proc template ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; list / store = &amp;amp;&lt;FONT color="#008080"&gt;&lt;FONT color="#008080"&gt;&lt;FONT color="#008080"&gt;store.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where = ( upcase( path ) = upcase( &lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;"&amp;amp;style."&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; ))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp; run ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp; proc printto ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp; run ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp; data _null_ ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile __st ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; input ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if prxmatch( &lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;"/&amp;amp;style./i"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; , _infile_ )&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; then&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute( &lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;"proc template ;"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; ) ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute( cat( &lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;"delete "&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , &lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;"&amp;amp;style."&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , &lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;"/ store = &amp;amp;store. ;"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;call execute( &lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;"run ;"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; ) ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stop ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp; run ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp; filename __st clear ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp;&amp;nbsp;%__END:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;&lt;FONT color="#000080"&gt;&lt;FONT color="#000080"&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; m_u_delete_style ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know if you see any errors or areas to improve.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kevin&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 18:47:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ERROR-A-lock-is-not-available-for-TEMPLATE-TEMPLAT-ITEMSTOR/m-p/298120#M16887</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2016-09-13T18:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: A lock is not available for TEMPLATE.TEMPLAT.ITEMSTOR.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ERROR-A-lock-is-not-available-for-TEMPLATE-TEMPLAT-ITEMSTOR/m-p/298167#M16892</link>
      <description>Hi:&lt;BR /&gt;  My only suggestion is NOT to update SASUSER. I do not write templates to SASUSER because when you install SAS, the SASUSER library goes away.&lt;BR /&gt;&lt;BR /&gt;  If you ARE going to write to SASUSER, then I recommend highly that you SAVE all your code that creates the templates in the item store.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Tue, 13 Sep 2016 22:56:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ERROR-A-lock-is-not-available-for-TEMPLATE-TEMPLAT-ITEMSTOR/m-p/298167#M16892</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-09-13T22:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: A lock is not available for TEMPLATE.TEMPLAT.ITEMSTOR.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ERROR-A-lock-is-not-available-for-TEMPLATE-TEMPLAT-ITEMSTOR/m-p/298170#M16894</link>
      <description>&lt;P&gt;I understand.&amp;nbsp; I needed a solution and could not even hope to track down all of my users to log out of SAS, if they even could.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The shared autoexec.sas re-writes the template with each invocation of a session.&amp;nbsp; For production work, they should be submitting one program from a fresh session only.&amp;nbsp; It makes for a bit of a lengthy log from the autoexec and echo, but we have the font we need &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 23:12:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ERROR-A-lock-is-not-available-for-TEMPLATE-TEMPLAT-ITEMSTOR/m-p/298170#M16894</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2016-09-13T23:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: A lock is not available for TEMPLATE.TEMPLAT.ITEMSTOR.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ERROR-A-lock-is-not-available-for-TEMPLATE-TEMPLAT-ITEMSTOR/m-p/298172#M16896</link>
      <description>&lt;P&gt;Our approach is to store TEMPLATE updates in the SAS WORK library as WORK.TEMPLATE then add an ODS PATH to every job's setup (could be in a SAS CONFIG) pointing to WORK.TEMPLATE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The advantage of this approach is the avoidance of any locking or sharing problems. The disadvantage is every job/session has to create (or copy) the templates from scratch. If there aren't very many then the overhead would be minimal.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 23:21:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ERROR-A-lock-is-not-available-for-TEMPLATE-TEMPLAT-ITEMSTOR/m-p/298172#M16896</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-09-13T23:21:00Z</dc:date>
    </item>
  </channel>
</rss>

