Chapter Contents

Previous

Next
NENGOw.

NENGOw.



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

Category: Date and Time
Alignment: left


Syntax
Syntax Description
Details
Examples
See Also

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.


Examples

The example table uses the input value of 15342, which is the SAS date value that corresponds to January 2, 2002.

SAS 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:

NENGOw.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.