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

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

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