Previous Page | Next Page

Formats for NLS

NENGOw. Format



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.

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

Informats:

NENGOw. Informat

Previous Page | Next Page | Top of Page