TODSTAMPw. Informat

Reads an eight-byte time-of-day stamp.

Category: Date and Time

Syntax

TODSTAMPw.

Syntax Description

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.

Details

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.

Example

input btime: $hex16.;
y=input(btime, todstamp8.);
Data Line 1
Result
----+----1----+----2
B591183D5FB80000
1300786905
1The 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 March 21, 2001, 09:41:45.