DATA Step, Macro, Functions and more

When trying to re-compile a macro giving an error

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 5
Accepted Solution

When trying to re-compile a macro giving an error

I have changed one of the macro defintion and to bring modified macro to effect, I need compile all macros, while doing its giving me below error:

 

ERROR: A lock is not available for COMPILED.SASMACR.CATALOG, lock held by another process.
ERROR: File COMPILED.SASMACR.CATALOG has not been saved because copy could not be completed.

 

Please help.


Accepted Solutions
Solution
‎06-29-2017 03:04 AM
Super User
Super User
Posts: 7,039

Re: When trying to re-compile a macro giving an error

Posted in reply to harishpl02

Sounds like you are trying to store compiled macros into a catalog, but the catalog is locked.

Is that what you are trying to do?  Do you know why the catalog is locked?

 

Why do you need to store the compiled macros into a catalog?  Why not just keep the source code as text and use SASAUTOS option to let SAS find and compile the macros as you call them?  Then you won't have this problem.

View solution in original post


All Replies
Solution
‎06-29-2017 03:04 AM
Super User
Super User
Posts: 7,039

Re: When trying to re-compile a macro giving an error

Posted in reply to harishpl02

Sounds like you are trying to store compiled macros into a catalog, but the catalog is locked.

Is that what you are trying to do?  Do you know why the catalog is locked?

 

Why do you need to store the compiled macros into a catalog?  Why not just keep the source code as text and use SASAUTOS option to let SAS find and compile the macros as you call them?  Then you won't have this problem.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 127 views
  • 1 like
  • 2 in conversation