Chapter Contents

Previous

Next
NENGOw.

NENGOw.



Reads Japanese date values in the form eyymmdd

Category: Date and Time


Syntax
Syntax Description
Details
Examples
See Also

Syntax

NENGOw.

Syntax Description

w
specifies the width of the input field.
Default: 10
Range: 7-32


Details

The general form of a Japanese date is eyymmdd, 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 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 emperor. 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 less than 10.


Examples

input nengo_date nengo8.;
put nengo_date date9.;

Data Lines Results
----+----1----+

h11108
08OCT1999
h.11108
08OCT1999
11/10/08
08OCT1999


See Also

Format:

NENGOw..


Chapter Contents

Previous

Next

Top of Page

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