Previous Page | Next Page

Formats for NLS

NLDATMYWw. Format



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

Syntax
Syntax Description
Examples

Syntax

NLDATMYWw.

Syntax Description

w

specifies the width of the output field.

Default: 16
Range: 5-200

Examples

This example uses the fr_FR locale option.

Statements Results
options locale=fr_FR;

data _null_;

dy=today();

dt=datetime();

put "+--- NLDATMYW min=5 default=16 max=200 ---+";

put ' 16' +5 dt nldatmyw.;

put ' 5' +5 dt nldatmyw5.;

put ' 8' +5 dt nldatmyw8.;

put ' 32' +5 dt nldatmyw32.;

put '200' +5 dt nldatmyw200.;

run;





+--- NLDATMYW min=5 default=16 max=200 ---+

16 Week 33 2008

5 *****

8 W33 08

32 Week 33 2008

200

Week 33 2008

Previous Page | Next Page | Top of Page