If you are like me wanted to get the details of formats stored in the format library, here are two easy ways ….Proc catalog or Proc format
Proc Catalog: Proc catalog will give us the details about name and type (numeric or character) of formats
Syntax:
proc catalog catalog = frmtdir.formats;
contents;
run;
*FORMATS, is the name of the folder where all permanent formats are stored inside the library FRMTDIR.
*If you want to get the details of temporary formats use WORK in place of frmtdir.formats;
Proc Format:
Use either SELECT or EXCLUDE statements to choose the formats for which you want to get the details.
Syntax:
proc format library = frmtdir.formats;
select locfmt;
run;
This code will provide the details of LOCFMT in the FRMTDIR library.
Below code gives complte information about what's stored in your format catalogs.
libname frmtdir 'c:\saswork';
proc format library=frmtdir.formats cntlout = formats;
run;
Look at the output dataset 'formats' to get the details of the formats.
('’)
Subscribe to:
Posts (Atom)
Learn how to view SAS dataset labels without opening the dataset directly in a SAS session. Easy methods and examples included!
Quick Tip: See SAS Dataset Labels Without Opening the Data Quick Tip: See SAS Dataset Labels With...
-
1) What do you know about CDISC and its standards? CDISC stands for Clinical Data Interchange Standards Consortium and it is developed ke...
-
Comparing Two Approaches to Removing Formats and Informats in SAS Comparing Two Approaches to Removing Formats...
-
USE OF THE “STUDY DAY” VARIABLES The permissible Study Day variables (--DY, --STDY, and --ENDY) describe the relative day of the observ...