Page 1 of 1

SMF Time Stamp Fields

PostPosted: Mon Jun 29, 2009 11:08 pm
by qz2s4m
Can anyone specify how to define fields to read an SMF Time Stamp field? In the SMF Type 6 records there are two fields that contain the Entry Date and Time as an example and are described below:

Field Name Offset Length Format
SMF6TME 6 4 Binary
SMF6DTE 10 4 Packed

Trying to use the following, though not sure if the mixed field type can be combined:

FILE SMF06 VB(32756 32760)
JOB-ENTRY 6 8 P
ENT-TIME 4 P
ENT-DATE +4 4 P

Any insight appreciated thanks.

Duane

Re: SMF Time Stamp Fields

PostPosted: Tue Jun 30, 2009 1:35 am
by Bill Dennis
Date is packed Julian date x'0CyydddF'. The "C" is centuries beyond year 1900, so today looks like x'0109180F' (year =1900+109, day= 180).

The SMF time is 1/100s of seconds since midnight. Use 2 decimals and factor by 3600 for whole hours and 60 for whole minutes.

Re: SMF Time Stamp Fields

PostPosted: Fri Sep 25, 2009 11:25 pm
by qz2s4m
I have since resolved this issue for myself, below is an example of code used to define a couple timestamp fields in the SMF6 record.

PEND-TOD 3 8 A MASK(HEX).
PEND-TIME PEND-TOD 4 B.
PEND-DATE PEND-TOD +4 4 P.
JOBNAME 15 8 A.
READ-TOD 23 8 A MASK(HEX).
READ-TIME READ-TOD 4 B.
READ-DATE READ-TOD +4 4 P.
CLASS 39 1 A.
PBGN-TOD 40 8 A MASK(HEX).

Re: SMF Time Stamp Fields

PostPosted: Fri Sep 25, 2009 11:27 pm
by qz2s4m
Thanks for the info Dennis