Previous Page | Next Page

Formats for NLS

NLDATMYQw. Format



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

Syntax
Syntax Description
Examples

Syntax

NLDATMYQw.

Syntax Description

w

specifies the width of the output field.

Default: 16
Range: 4-200

Examples

This example uses the fr_FR locale option.

Statements Results
options locale=fr_FR;

data _null_;

dy=today();

dt=datetime();

put "+--- NLDATMYQ min=4 default=16 max=200 ---+";

put ' 16' +5 dt nldatmyq.;

put ' 4' +5 dt nldatmyq4.;

put ' 14' +5 dt nldatmyq14.;

put ' 32' +5 dt nldatmyq32.;

put '200' +5 dt nldatmyq200.;

run;





+--- NLDATMYQ min=4 default=16 max=200 ---+

16 T3 08

4 ****

14 T3 08

32 3e trimestre 2008

200 3e trimestre 2008

Previous Page | Next Page | Top of Page