NLDATMYRw. Format

Converts the SAS datetime value to the datetime value of the specified locale, and then writes the value as the year.
Category: Date and Time
Alignment: left

Syntax

NLDATMYRw.

Syntax Description

w
specifies the width of the output field.
Default:16
Range:2–200

Example

This example uses the en_US locale option.
Statements
Results
options locale=fr_FR;
data _null_;
dy=today();
dt=datetime();
put "+--- NLDATMYR min=2 default=16 max=200 ---+";
put dt nldatmyr.;
put dt nldatmyr2.;
put dt nldatmyr32.;
put dt nldatmyr200.;
run;
+--- NLDATMYR min=2 default=16 max=200 ---+
2008
08
2008
2008