Reads time and date values of SMF records.
Category: | Date and Time |
specifies the width of the input field.
Requirement | w must be 8 because time and date values in SMF records contain eight bytes of information: four bytes of time data that are followed by four bytes of date data. |
Tip | The time portion of an SMF record is a four-byte integer binary number that represents time as the number of hundredths of a second past midnight. |
input begin: $hex16.; y=input(begin, smfstamp8.);
Data Line 1
|
Result
|
---|---|
----+----1----+----2 |
|
0058DC0C0108200F |
1532016635 |
1The data line is a hexadecimal representation of a binary time and date value that is stored as it would appear in an SMF record. Each byte occupies one column of the input field. The result is a SAS datetime value that corresponds to July 18, 2008, 4:10:35 PM. |