BookmarkSubscribeRSS Feed
Pandu
Fluorite | Level 6

Hi,

 

i want to see what are the formats available in a catalog.

 

looking forward for your help,

 

 

3 REPLIES 3
FreelanceReinh
Jade | Level 19

Hi @Pandu,

 

I mostly use the FMTLIB option of PROC FORMAT for this purpose.

 

The syntax is:

proc format lib=your_libref fmtlib;
run;

Or, if the name of the catalog is not FORMATS:

proc format lib=your_libref.your_catalog fmtlib;
run;

 

If you don't want to see the format definitions, but just the format names, types, etc., the CATALOG procedure is a better option:

proc catalog c=your_libref.your_catalog;
contents;
quit;
andreas_lds
Jade | Level 19

Enterprise Guide 8.x has a viewer for catalogs names "Catalog and format explorer".

Reeza
Super User

CNTLOUT on PROC FORMAT to pipe that information to a data set. 

 

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of 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
  • 1343 views
  • 6 likes
  • 4 in conversation