Reads date values in the form yymmdd or
yyyymmdd.
-
w
-
specifies the width of the input field.
The date values must be in the form yymmdd or yyyymmdd, where
-
yy or yyyy
-
is a two-digit or four-digit integer that
represents the year.
-
mm
-
is an integer from 01 through 12 that represents
the month of the year.
-
dd
-
is an integer from 01 through 31 that represents
the day of the month.
You can separate the year, month, and day values by blanks or by special
characters. However, if delimiters are used, place them between all the values.
You can also place blanks before and after the date. Make sure the width
of the input field allows space for blanks and special characters.
Note: SAS interprets a two-digit year as belonging to
the 100-year span that is defined by the YEARCUTOFF= system option. ![[cautionend]](../../../../common/63294/HTML/default/images/cautend.gif)
input calendar_date yymmdd10.;
Data Line |
Results |
----+----1----+
|
|
050316
|
16511
|
05/03/16
|
16511
|
05 03 16
|
16511
|
2005-03-16
|
16511
|
|
Formats:
|
|
Functions:
|
|
Informats:
|
|
System
Option:
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.