Informats |
Category: | Date and Time |
Syntax | |
Syntax Description | |
Details | |
Examples |
Syntax |
SHRSTAMPw. |
specifies the width of the input field.
Requirement: | w must be 8 because packed decimal date and time values in SHR records contain eight bytes of information: four bytes of date data that are followed by four bytes of time data. |
Details |
The SHRSTAMPw. informat reads packed decimal date and time values of SHR records that are produced by IBM mainframe environments and converts the date and time values to SAS datetime values.
The general form of the date and time information in an SHR record in hexadecimal notation is ccyydddFhhmmssth, where
is the two byte representation of the year. The cc portion is the one byte representation of a two-digit integer that represents the century. The yy portion is the one byte representation of two digits that correspond to the year.
The cc portion is the century indicator where 00 indicates 19yy, 01 indicates 20yy, 02 indicates 21yy, and so on. A hexadecimal year value of 0115 is equal to the year 2015.
is the one-and-a-half bytes that contain three digits that correspond to the day of the year.
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 the one byte representation of two digits that correspond to seconds.
is the one byte representation of two digits that correspond to a 100th of a second.
The SHRSTAMPw. informat enables you to read, on any operation environment, packed decimal date and time values from files that are created on an IBM mainframe.
Examples |
input begin shrstamp8.;
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.