Summary

Statements

date-variable='ddMMMyy'D;
is an assignment statement that tells SAS to convert the date in quotation marks to a SAS date value and assign it to date-variable. The SAS date constant 'ddMMMyy'D specifies a particular date (for example, '23NOV00'D), and can be used in many SAS statements and expressions, not only assignment statements.
FORMAT date-variabledate-format;
tells SAS to format the values of date-variable using date-format. A FORMAT statement within a DATA step permanently associates a format with date-variable.
INPUT date-variabledate-informat;
tells SAS how to read the values for the date-variable from an external file. date-informat is an instruction that tells SAS the form of the date in the external ...

Get Step-by-Step Programming with Base SAS 9.4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.