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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 9010 views
  • 3 likes
  • 4 in conversation