Writes SAS date values as the year.
Category: | Date and Time |
Alignment: | Right |
specifies the width of the output field.
Default | 4 |
Range | 2–32 |
Tip | If w is less than 4, the last two digits of the year print. Otherwise, the year value prints as four digits. |
Statements
|
Results
|
---|---|
|
----+----1 |
select put(19537,year2.); |
13 |
select put(19537,year4.); |
2013 |