Search notes:

SAS: dictionary.formats

Describe

proc sql;
  describe table dictionary.formats;
quit;


/*
create table DICTIONARY.FORMATS
  (
   libname char(8) label='Library Name',
   memname char(32) label='Member Name',
   path char(1024) label='Pathname',
   objname char(32) label='Object Name',
   fmtname char(32) label='Format Name',
   fmttype char(1) label='Format Type',
   source char(1) label='Format Source',
   minw num label='Minimum Width',
   mind num label='Minimum Decimal Width',
   maxw num label='Maximum Width',
   maxd num label='Maximum Decimal Width',
   defw num label='Default Width',
   defd num label='Default Decimal Width'
  );
 */
Github repository about-SAS, path: /programming/dictionary/formats/describe.sas
fmttype is either I for an informat or F for a format.

Select after proc format

Querying the table after creating a format with proc format.
proc format;
  picture
     ddmmyyyy_hh24miss 
    (default=19)                   /* <-- default width of format */
     other='%0d.%0m.%Y %0H:%0M:%0S'
    (datatype=datetime);
  
run;

proc sql;
  select *
  from
    dictionary.formats
  where
    libname = 'WORK' and
    objname = 'DDMMYYYY_HH24MISS';
quit;
Github repository about-SAS, path: /programming/dictionary/formats/proc-format.select.sas

See also

informats and formats
dictionary tables
Using dictionary.formats to find predefined formats.

Index