Open In App

SAS | Date Formats and Informats

Informats is used to tell SAS how to read a variable whereas Formats is used to tell SAS how to display or write values of a variable.

Informats is basically used when you read in sample data which is being created using CARDS/DATALINES statement or read or import data from either an external file (Text/Excel/CSV).



Formats can be used in both Data Steps and PROC Steps whereas Informat can be used only in Data Steps.

Example: Read Dates in SAS




Article Tags :