Previous Page | Next Page

Informats

SMFSTAMPw. Informat



Reads time and date values of SMF records.
Category: Date and Time

Syntax
Syntax Description
Details
Examples

Syntax

SMFSTAMPw.

Syntax Description

w

specifies the width of the input field.

Requirement: w must be 8 because time and date values in SMF records contain eight bytes of information: four bytes of time data that are followed by four bytes of date data.
Tip: The time portion of an SMF record is a four-byte integer binary number that represents time as the number of hundredths of a second past midnight.

Details

The SMFSTAMPw. informat reads integer binary time values and packed decimal date values of SMF records that are produced by IBM mainframe systems and converts the time and date values to SAS datetime values.

The date portion of an SMF record in hexadecimal notation is ccyydddF, where

cc

is the one-byte representation of two digits that correspond to the century.

yy

is the one-byte representation of two digits that correspond to the year.

ddd

is the one-and-a-half bytes that contain three digits that correspond to the day of the year.

F

is the half byte that contains all binary 1s.

The SMFSTAMPw. informat enables you to read, on any operating environment, integer binary time values and packed decimal date values from files that are created on an IBM mainframe.


Examples

input begin smfstamp8.;

Data Line* Results
----+----1----+----2

0058DC0C0098200F
1216483835
* The data line is a hexadecimal representation of a binary time and date value that is stored as it would appear in an SMF record. Each byte occupies one column of the input field. The result is a SAS datetime value that corresponds to July 19, 1998 4:10:35 PM.

Previous Page | Next Page | Top of Page