Converts the SAS date value to the date value of the specified
locale, and then writes the date value as the year and the week.
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 "+--- NLDATEYW min=5 default=16 max=200
---+";
put ' 16' +5 dy nldateyw.;
put ' 5' +5 dy nldateyw5.;
put ' 8' +5 dy nldateyw8.;
put ' 32' +5 dy nldateyw32.;
put '200' +5 dy
nldateyw200.;
run; |
16 Week 33
2008
5 *****
8 W33 08
32 Week 33 2008
200
Week 33 2008 |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.