BookmarkSubscribeRSS Feed
Daniel
Obsidian | Level 7

Good morning,

I am exploring the options offered by ODS DOCUMENT and PROC DOCUMENT. Sometimes, when trying to write to a document, I get the following message:

ERROR: A lock is not available for LIB.PROJECT.ITEMSTOR

where LIB is the libname where the document is stored and PROJECT is the document name. I am wondering what is the explanation for this; I always put either a ODS DOCUMENT CLOSE statement at the end of a code block or, if I'm using PROC DOCUMENT, I always ensure there is a QUIT that is submitted at the end. As I'm submitting code, I usually have the Documents Explorer panel on the left. I'm sorry for not putting more information but I'm not sure what I should provide to help solve this mystery Smiley Happy

Thank you for your help,

Daniel

1 REPLY 1
Cynthia_sas
Diamond | Level 26

Hi, this is one of those situations where it might be best to work with Tech Support. Somebody has to look at all your code and your permissions to help you figure out what's going on. Usually, if you search on part of your ERROR message in the Tech Support notes, you can find something relevant. When I searched on your error message, I only saw REGISTRY issues or TEMPLATE issues, neither of which seems immediately relevant to document stores. But, if it is a problem with ODS DOCUMENT, then Tech Support is in the best position to alert the developers to find out whether there is a fix or workaround.

  To open a track with Tech Support, fill out the form at this link:

http://support.sas.com/ctx/supportform/createForm

cynthia

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1165 views
  • 0 likes
  • 2 in conversation