NENGOw. Format

Writes SAS date values as Japanese dates in the form e.yymmdd.

Category: Date and Time
Alignment: Left

Syntax

NENGOw.

Arguments

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 19431, which is the SAS date value that corresponds to March 14, 2013.
Statements
Results
----+----1
select put(19431,nengo3.);
H25
select put(19431,nengo6.);
H25/03
select put(19431,nengo8.);
H.250314
select put(19431,nengo9.);
H25/03/14
select put(19431,nengo10.);
H.25/03/14

See Also

Formats: