BookmarkSubscribeRSS Feed
merrittsas
Calcite | Level 5
I am needing to delete a defunct format from our format library. How do I go about doing that?

Thank you for any advice/suggestions.
4 REPLIES 4
ArtC
Rhodochrosite | Level 12
Formats are stored as entries in SAS catalogs. Assuming you have write access to the catalog you can delete it interactively through the SAS explorer. The entry name will correspond to the name of the format. You can use the FMTSEARCH option to show you the locations of the format catalogs.

From batch you can utilize the CATALOG and DATASETS procedures.
merrittsas
Calcite | Level 5
Great, it worked deleting it interactively. Thank you very much!
Fredrik_Hansson
Fluorite | Level 6

To delete format "BFC_ENKOPING_MOST_RECENT_MONTH." from catalog "formats" in libname "formats":

 

 

PROC CATALOG CATALOG=formats.formats;
  DELETE BFC_ENKOPING_MOST_RECENT_MONTH.FORMAT;
QUIT;

NOTE: Deleting entry BFC_ENKOPING_MOST_RECENT_MONTH.FORMAT in catalog FORMATS.FORMATS. NOTE: PROCEDURE CATALOG used (Total process time): real time 0.00 seconds cpu time 0.00 seconds

 

KevinViel
Pyrite | Level 9

I just did this, but got caught.  The following appears to work:

 

proc catalog
   catalog = work.formats ;
  delete egtest ( et = formatc ) ;
quit ;

Good luck,

 

Kevin

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 9243 views
  • 3 likes
  • 4 in conversation