Chapter Contents

Previous

Next
MSECw.

MSECw.



Reads TIME MIC values

Category: Date and Time


Syntax
Syntax Description
Details
Comparisons
Examples
See Also

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.


Examples

input btime msec8.;

Data Lines* 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 PM.


See Also

Informat:

TODSTAMPw.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.