MSECw. Informat

Reads TIME MIC values.

Category: Date and Time

Syntax

MSECw.

Syntax Description

w

specifies the width of the input field.

Requirement w must be 8 because the OS TIME macro or the STCK System/370 instruction on IBM mainframes each return an eight-byte value.

Details

The MSECw. informat reads time values that are produced by IBM mainframe operating environments and converts the time values to SAS time values.
Use the MSECw. informat to find the difference between two IBM mainframe TIME values, with precision to the nearest microsecond.

Comparisons

The MSECw. and TODSTAMPw. informats both read IBM time-of-day clock values, but the MSECw. informat assigns a time value to a variable, and the TODSTAMPw. informat assigns a datetime value.

Example

input btime msec8.;
Data Line 1
Result
0000EA044E65A000
62818.412122
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 time value corresponding to 5:26:58.41 p.m.

See Also

Informats: