Previous Page | Next Page

The CATALOG Procedure

Example 3: Using the FORCE Option with the KILL Option


Procedure features:

PROC CATALOG statement:

CATALOG= argument

KILL option

FORCE option

QUIT statement

RUN statement


This example


Program

 Note about code
 %macro matt;
   %put &syscc;
   %mend matt;
   
 Note about code
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

 Note about code
proc catalog c=work.sasmacr kill force;
run;
quit;

SAS Log

NOTE: Deleting entry MATT.MACRO in catalog WORK.SASMACR.

Previous Page | Next Page | Top of Page