PDTIMEw. Informat

Reads packed decimal time of SMF and RMF records.
Category: Date and Time

Syntax

PDTIMEw.

Syntax Description

w
specifies the width of the input field.
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:
0
is a half byte that contains all 0s.
hh
is one byte that represents two digits that correspond to hours.
mm
is one byte that represents two digits that correspond to minutes.
ss
is one byte that represents two digits that correspond to seconds.
F
is a half byte that contains all 1s.
If a field contains all 0s, PDTIMEw. treats it as a missing value.
PDTIMEw. enables you to read packed decimal time values from files that are created on an IBM mainframe on any operating environment.

Example

input begin pdtime4.;
Data Line 1
Result
0142225F
51745
1The 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 that corresponds to 2:22.25 p.m.