Writes date values as Japanese dates in the form e.yymmdd.
Category: |
Date and Time
|
Alignment: |
left
|
-
w
-
specifies the width of the output field.
The NENGOw.
format writes SAS date values in the form e.yymmdd,
where
-
e
-
is the first letter of the name of the emperor
(Meiji, Taisho, Showa, or Heisei).
-
yy
-
is an integer that represents the year.
-
mm
-
is an integer that represents the month.
-
dd
-
is an integer that represents the day of
the month.
If the width is too small,
SAS omits the period.
The example table uses the input value of 15342, which
is the SAS date value that corresponds to January 2, 2002.
Statements |
Results |
|
----+----1
|
put date nengo3.;
|
H14
|
put date nengo6.;
|
H14/01
|
put date nengo8.;
|
H.140102
|
put date nengo9.;
|
H14/01/02
|
put date nengo10.;
|
H.14/01/02
|
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.