BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
OGA13
Obsidian | Level 7

I tried already with:

proc catalog catalog=work.formats;
delete "$RFICDTC";
quit;



or 



proc format library=work.formats;
delete $RFICDTC;
quit;
1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Neither.

The approach with catalog entries is NAME.TYPE. The type of object is important because you could have a program, listing or other objects with the same name. With Formats you have FORMAT and FORMATC for character formats.

You can use

proc catalog catalog=work.formats;
contents ;
run;
quit;

To get the names and type of objects in the catalog. Your example would want:

proc format library=work.formats;
delete RFICDTC.FORMATC;
quit;

 

View solution in original post

2 REPLIES 2
ballardw
Super User

Neither.

The approach with catalog entries is NAME.TYPE. The type of object is important because you could have a program, listing or other objects with the same name. With Formats you have FORMAT and FORMATC for character formats.

You can use

proc catalog catalog=work.formats;
contents ;
run;
quit;

To get the names and type of objects in the catalog. Your example would want:

proc format library=work.formats;
delete RFICDTC.FORMATC;
quit;

 

OGA13
Obsidian | Level 7

I used this option and it worked. 

 

proc catalog catalog=work.formats;
delete armnrs / et=formatc;
run;

 

But also yours seems to use the same apporach. thanks anyway!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 2 replies
  • 806 views
  • 4 likes
  • 2 in conversation