Chapter Contents |
Previous |
Next |
PDTIMEw. |
Category: | Date and Time |
Syntax | |
Syntax Description | |
Details | |
Examples |
Syntax |
PDTIMEw. |
Requirement: | w must be 4 because packed decimal time values in RMF and SMF records contain four bytes of information. |
Details |
The PDTIMEw. informat reads packed decimal time values that are contained in SMF and RMF records that are produced by IBM mainframe systems and converts the values to SAS time values.
The general form of a packed decimal time value in hexadecimal notation is 0hhmmssF, where
PDTIMEw. enables you to read packed decimal time values from files that are created on an IBM mainframe on any operating environment.
Examples |
input begin pdtime4.;
Data Lines* | Results |
---|---|
0142225F |
51745 |
*The data line is a hexadecimal representation of a binary time value that is stored in packed decimal form. Each byte occupies one column of the input field. The result is a SAS time value this corresponds to 2:22.25 PM. |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.