Previous Page | Next Page

Informats for NLS

NENGOw. Informat



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:

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.

Examples

The following examples use different input values.

input nengo_date nengo8.;
put nengo_date date9.;

Values Results

----+----1----+
h11108
08OCT1999
h.11108
08OCT1999
11/10/08
08OCT1999


See Also

Formats:

NENGOw. Format

Previous Page | Next Page | Top of Page