Reads an eight-byte time-of-day stamp.
-
w
-
specifies the width of the input field.
Requirement: |
w must be 8 because the OS TIME macro or the STCK instruction
on IBM mainframes each return an eight-byte value. |
The TODSTAMPw.
informat reads time-of-day clock values that are produced by IBM mainframe
operating systems and converts the clock values to SAS datetime values.
If the time-of-day value is all 0s, TODSTAMPw. results in a missing
value.
Use TODSTAMPw. on other
operating environments to read time-of-day values that are produced by an
IBM mainframe.
input btime todstamp8.;
Data Line* |
Results |
----+----1----+----2
|
|
B361183D5FB80000
|
1262303998
|
*
The data line is a hexadecimal representation of a binary,
8-byte time-of-day clock value. Each byte occupies one column of the input
field. The result is a SAS datetime value that corresponds to December 31,
1999, 11:59:58 p.m. |
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.