NENGOw. Informat

Reads Japanese date values in the form eyymmdd.
Category: Date and Time

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:
e
is the first letter of the name of the imperial era(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 imperial era. 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 values less than 10.

Example

The following examples use different input values.
input nengo_date nengo8.;
put nengo_date date9.;
data _null_;
   input nengo_date nengo8.;
   put nengo_date date9.; 
   put nengo_date= ; 
   datalines; 
h11108
h.11108 
11/10/08 
; 
Values
Results
----+----1----+
h11108
08OCT1999
h.11108
08OCT1999
11/10/08
08OCT1999

See Also

Formats: