Reads Japanese date values in the form eyymmdd.
- w
-
specifies the width of the input field.
The general form of a Japanese date is
eyymmdd:
- e
-
is the first letter of the name of the imperial era(Meiji,
Taisho, Showa, or Heisei).
- yy
-
is an integer that represents the year.
- mm
-
is an integer from 01 through 12 that represents the month.
- dd
-
is an integer from 01 through 31 that represents the day
of the month.
The
e
value can be separated from the integers by a period. If you omit
e, SAS uses the current imperial era. You can separate the
year, month, and day values by blanks or any nonnumeric character. However;
if delimiters are used, place them between all the values. If you omit delimiters,
be sure to use a leading zero for days or months that are values less than
10.
The following examples use different input values.
input nengo_date nengo8.;
put nengo_date date9.;
Values |
Results |
|
----+----1----+
|
h11108
|
08OCT1999
|
h.11108
|
08OCT1999
|
11/10/08
|
08OCT1999
|
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.