Reads TIME MIC values.
-
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. |
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.
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.
input btime msec8.;
Data Line* |
Results |
0000EA044E65A000
|
62818.412122
|
*
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 time value corresponding to 5:26:58.41 p.m. |
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.