SMF Time Stamp Fields



Unicenter CA-Easytrieve Plus Report Generator: CA's information retrieval and data management tool

SMF Time Stamp Fields

Postby qz2s4m » Mon Jun 29, 2009 11:08 pm

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
qz2s4m
 
Posts: 7
Joined: Mon Jun 29, 2009 10:08 pm
Has thanked: 0 time
Been thanked: 0 time

Re: SMF Time Stamp Fields

Postby Bill Dennis » Tue Jun 30, 2009 1:35 am

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.
Regards,

Bill Dennis

Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.
Bill Dennis
 
Posts: 278
Joined: Thu May 15, 2008 9:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: SMF Time Stamp Fields

Postby qz2s4m » Fri Sep 25, 2009 11:25 pm

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).
qz2s4m
 
Posts: 7
Joined: Mon Jun 29, 2009 10:08 pm
Has thanked: 0 time
Been thanked: 0 time

Re: SMF Time Stamp Fields

Postby qz2s4m » Fri Sep 25, 2009 11:27 pm

Thanks for the info Dennis
qz2s4m
 
Posts: 7
Joined: Mon Jun 29, 2009 10:08 pm
Has thanked: 0 time
Been thanked: 0 time


Return to CA-Easytrieve

 


  • Related topics
    Replies
    Views
    Last post