Informats |
Category: | Date and Time |
Syntax | |
Syntax Description | |
Details | |
Comparisons | |
Examples |
Syntax |
RMFSTAMPw. |
specifies the width of the input field.
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
is the one-byte representation of two digits that correspond to the hour of the day.
is the one-byte representation of two digits that correspond to minutes.
is 1 byte that represents two digits that correspond to seconds.
is the one-byte representation of two digits that correspond to the century.
is the one-byte representation of two digits that correspond to the year.
is the one-and-a-half bytes that contain three digits that correspond to the day of the year.
is the half byte that contains all binary 1s.
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 |
Both the RMFSTAMPw. informat and the PDTIMEw. informat read packed decimal values from RMF records. The RMFSTAMPw. informat reads both time and date values and results in a SAS datetime value. The PDTIMEw. informat reads only time values and results in a SAS time value.
Examples |
input begin rmfstamp8.;
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.