BookmarkSubscribeRSS Feed
frisco
Calcite | Level 5
Is there a function to test for a missing user-defined format? I create a great deal of user-defined formats and am not always notifed by end-users that a new format needs to be created.
3 REPLIES 3
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
You can use DICTIONARY.FORMATS or SASHELP.VFORMAT to determine if a FORMAT/FORMATC member exists.

Scott Barry
SBBWorks, Inc.

http://support.sas.com/documentation/cdl/en/sqlproc/62086/HTML/default/a001385596.htm
ChrisNZ
Tourmaline | Level 20
I agree with Scott, list the formats you need by looking at what tables use, then list the formats you have by looking at what your format catalogs contain, and compare.
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
And, if you want to test for a user-defined format using a function call, you can always use the EXIST function, knowing the libref and catalog, as well as format-type (either FORMAT or FORMATC).

Scott Barry
SBBWorks, Inc.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

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
  • 3 replies
  • 762 views
  • 0 likes
  • 3 in conversation