Converts the SAS date value to the date value of the specified
locale, and then writes the date value as the year and the quarter.
Category: |
Date and Time
|
Alignment: |
left
|
- w
-
specifies the width of the output field.
This example uses the fr_FR locale option.
Statements |
Results |
options locale=fr_FR;
data _null_;
dy=today();
dt=datetime();
put "+--- NLDATEYQ min=4 default=16 max=200
---+";
put ' 16' +5 dy nldateyq.;
put ' 4' +5 dy nldateyq4.;
put ' 14' +5 dy nldateyq14.;
put ' 32' +5 dy nldateyq32.;
put '200' +5
dy nldateyq200.;
run; |
+--- NLDATEYQ min=4
default=16 max=200 ---+
16 T3 08
4 ****
14 T3 08
32 3e trimestre 2008
200
3e trimestre 2008 |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.