Chapter Contents |
Previous |
Next |
SMFSTAMPw. |
Category: | Date and Time |
Syntax | |
Syntax Description | |
Details | |
Examples |
Syntax |
SMFSTAMPw. |
Requirement: | w must be 8 because time and date values in SMF records contain eight bytes of information: four bytes of time data that are followed by four bytes of date data. |
Tip: | The time portion of an SMF record is a four-byte integer binary number that represents time as the number of hundredths of a second past midnight. |
Details |
The SMFSTAMPw. informat reads integer binary time values and packed decimal date values of SMF records that are produced by IBM mainframe systems and converts the time and date values to SAS datetime values.
The date portion of an SMF record in hexadecimal notation is ccyydddF, where
The SMFSTAMPw. informat enables you to read, on any operating environment, integer binary time values and packed decimal date values from files that are created on an IBM mainframe.
Examples |
input begin smfstamp8.;
Data Lines* | Results |
---|---|
----+----1----+----2 |
|
0058DC0C0098200F |
1216483835 |
*The data line is a hexadecimal representation of a binary time and date value that is stored as it would appear in an SMF record. Each byte occupies one column of the input field. The result is a SAS datetime value that corresponds to July 19, 1998 4:10:35 PM. |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.