NENGOw. Format

Writes date values as Japanese dates in the form e.yymmdd.
Category: Date and Time
Alignment: left

Syntax

NENGOw.

Syntax Description

w
specifies the width of the output field.
Default:10
Range:2–10

Details

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.

Example

The example table uses the input value of 15342, which is the SAS date value that corresponds to January 2, 2002.
data _null_;
   date=15342;
   put date nengo3.;
   put date nengo6.;
   put date nengo8.;
   put date nengo9.;
   put date nengo10.;
run
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

See Also

Informat: