Writes SAS date values in the form [yy]yyMmm, where M is the separator and the year appears as either 2 or 4 digits.
Category: | Date and Time |
Alignment: | Right |
specifies the width of the output field.
Default | 7 |
Range | 5–32 |
Interaction | When w has a value of 5 or 6, the date appears with only the last two digits of the year. When w is 7 or more, the date appears with a four-digit year. |
Statements
|
Results
|
---|---|
|
----+----1----+ |
select put(19656,yymm5.); |
13M10 |
select put(19656,yymm6.); |
13M10 |
select put(19656,yymm.); |
2013M10 |
select put(19656,yymm7.); |
2013M10 |
select put(19656,yymm10.); |
2013M10 |