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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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