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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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