IBM i Global

IBM i 

A space for professionals working with IBM’s integrated OS for Power systems to exchange ideas, ask questions, and share expertise on topics like RPG and COBOL development, application modernization, open source integration, system administration, and business continuity.


#Power


#IBMi
#Power
 View Only

What is the internal structure of a *ITV message data field?

  • 1.  What is the internal structure of a *ITV message data field?

    Posted Tue December 12, 2023 09:49 AM

    Does anyone here have any experience with the message data field type *ITV - as found in message ID CPI6705?

    According to the documentation it is "An 8-byte time interval that contains the time to the nearest whole second for various wait timeout conditions.". But when I look at the message tokens for message ID CPI6705, it is not simply an integer for the seconds.

    Here is the output from an SQL on table function QSYS2.JOBLOG_INFO, extracting

    regexp_substr( MESSAGE_SECOND_LEVEL_TEXT, 'open was (\d+) seconds', 1, 1, 'i', 1 ) as MESSAGE_TEXT

    and

    hex( substr( MESSAGE_TOKENS, 94, 8 ) ) as ITV_HEX

    MESSAGE_TEXT    ITV_HEX
    3    00000002AA77B000
    0    0000000009938002
    0    00000000391F1000
    16957    00003F2B55E8A000
    256    000000F47B709000
    2    000000021F889002
    0    0000000000761000
    2771    00000A52A44CD002
    2775    00000A5665DDB000
    0    0000000003B27002

    Anyone got any ideas?

    Best regards,

    Christian



    ------------------------------
    Christian Jorgensen
    IT System Administrator
    Network of Music Partners A/S
    ------------------------------