![]() Chapter Contents |
![]() Previous |
![]() Next |
| PDTIMEw. |
| Category: | Date and time |
| Syntax | |
| Syntax Description | |
| Details | |
| Examples |
Syntax |
| PDTIMEw. |
| Requirement: | w must be 4 because packed decimal time values in RMF and SMF records contain four bytes of information. |
| Details |
The general form of a packed decimal time value in hexadecimal notation is 0hhmmssF, where
| Examples |
input begin pdtime4.;
| Data Lines* | Results |
|---|---|
0142225F |
51745 |
| *The data line is a hexadecimal representation of a binary time value that is stored in packed decimal form. Each byte occupies one column of the input field. The result is a SAS time value this corresponds to 2:22.25 PM. | |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.