The CATALOG Procedure |
Procedure features: |
|
This example
creates a resource environment
tries to delete all catalog entries by using the KILL option but receives an error
specifies the FORCE option to successfully delete all catalog entries by using the KILL option.
Program |
%macro matt; %put &syscc; %mend matt; |
proc catalog c=work.sasmacr kill; run; quit; |
Log |
ERROR: You cannot open WORK.SASMACR.CATALOG for update access because WORK.SASMACR.CATALOG is in use by you in resource environment Line Mode Process. WARNING: Command CATALOG not processed because of errors noted above. NOTE: The SAS System stopped processing this step because of errors. NOTE: PROCEDURE CATALOG used (Total process time): real time 0.04 seconds cpu time 0.03 seconds
Add the FORCE Option to the PROC CATALOG Statement |
proc catalog c=work.sasmacr kill force; run; quit; |
SAS Log |
NOTE: Deleting entry MATT.MACRO in catalog WORK.SASMACR.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.