SUPPORT / SAMPLES & SAS NOTES
 

Support

Usage Note 4739: Errors might be generated when attempting to store templates in the SASUSER location

DetailsAboutRate It
Errors are generated when attempting to store templates in the SASUSER library when the library is in use by another SAS session or another process. An error like the following is common:
ERROR: Template 'xxxxx' was unable to write to the template store!

By default, templates are stored in the SASUSER.TEMPLAT item store unless the ODS PATH is modified. Errors might also occur when writing to the SASUSER location if the access mode for the template store has been changed to (read). In addition, the following errors are generated if the RSASUSER option is set:

ERROR: A lock is not available for the SASUSER.TEMPLATE.ITEMSTOR,
       Lock held by another process.
ERROR: Template "xxxxx" was unable to write to the template store.

You can verify the ODS PATH settings using the code below:

ods path show;

To eliminate the error messages, use the ODS PATH statement to write to an alternate location. The example below adds a temporary item store in the Work directory where the templates will be written. In this example, the WORK.TEMPLAT item store is added before the default path.

ods path(prepend) work.templat(update);


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASMicrosoft Windows 95/988.1 TS1M0
Microsoft Windows NT Workstation8.1 TS1M0
Microsoft Windows 2000 Datacenter Server8.1 TS1M0
Microsoft Windows 2000 Professional8.1 TS1M0
Microsoft Windows 2000 Server8.1 TS1M0
OpenVMS VAX8.1 TS1M0
Microsoft Windows 2000 Advanced Server8.1 TS1M0
64-bit Enabled Solaris8.1 TS1M0
Solaris8.1 TS1M0
IRIX8.1 TS1M0
OS/28.1 TS1M0
z/OS8.1 TS1M0
64-bit Enabled HP-UX8.1 TS1M0
HP-UX8.1 TS1M0
ABI+ for Intel Architecture8.1 TS1M0
AIX8.1 TS1M0
Tru64 UNIX8.1 TS1M0
64-bit Enabled AIX8.1 TS1M0
CMS8.1 TS1M0
OpenVMS Alpha8.1 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.