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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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