Chapter Contents |
Previous |
Next |
RMFSTAMPw. |
Category: | Date and Time |
Syntax | |
Syntax Description | |
Details | |
Comparisons | |
Examples |
Syntax |
RMFSTAMPw. |
Requirement: | w must be 8 because packed decimal time and date values in RMF records contain eight bytes of information: four bytes of time data that are followed by four bytes of date data. |
Details |
The RMFSTAMPw. informat reads packed decimal time and date values of RMF records that are produced by IBM mainframe systems, and converts the time and date values to SAS datetime values.
The general form of the time and date information in an RMF record in hexadecimal notation is 0hhmmssFccyydddF, where
The century indicators 00 correspond to 1900, 01 to 2000, and 02 to 2100.
RMFSTAMPw. enables you to read, on any operating environment, packed decimal time and date values from files that are created on an IBM mainframe.
Comparisons |
Examples |
input begin rmfstamp8.;
Data Lines* | Results |
---|---|
----+----1----+----2 |
|
0142225F0102286F |
1350138145 |
*The data line is a hexadecimal representation of a binary time and date value that is stored in packed decimal form as it would appear in an RMF record. Each byte occupies one column of the input field. The result is a SAS datetime value that corresponds to October 13, 2002, 2:22.25 PM. |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.