Chapter Contents

Previous

Next
TODSTAMPw.

TODSTAMPw.



Reads an eight-byte time-of-day stamp

Category: Date and Time


Syntax
Syntax Description
Details
Examples

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 System/370 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.


Examples

input btime todstamp8.;

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


Chapter Contents

Previous

Next

Top of Page

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