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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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