Open topic with navigation

ibi™ Open Data Hub for Mainframe Connectors 1.0.8

# SMF Record Format for RECTYPES 2 and 5

The record format for `RECTYPE`s 2 and 5 of the SMF records written by the server is defined below. The format is provided in the system 390 assembler DSECT form.

    SMFOF    DSECT

             SPACE

    *----------------------------------------------------*

    *  USAGE ACCOUNTING SMF RECORD LAYOUT FOR LOGOFF RECORDS.             *

    *                                                                     *

    *  THIS IS THE DSECT DESCRIBING THE SMF RECORD WHICH IS PASSED TO     *

    *  YOUR EXIT ON AT USER LOGOFF TIME.  IT IS COMPLETELY READY TO BE    *

    *  WRITTEN WHEN YOUR EXIT RECEIVES CONTROL.                           *

    *----------------------------------------------------*

             SPACE

    *----------------------------------------------------*

    *  THE FIRST TWENTY FOUR BYTES OF THE RECORD ARE THE SMF HEADER.      *

    *  THESE FIELDS ARE REQUIRED IN ALL SMF RECORDS (18 BYTES FOR RECORDS *

    *  WITHOUT SUBTYPES; WE USE SUBTYPES, THE HEADER IS 24 BYTES).        *

    *----------------------------------------------------*

             SPACE

    SMFOFLEN DS    H'168'            RECORD LENGTH

    SMFOFSEG DS    XL2'0000'         SEGMENT DESCRIPTOR (0 UNLESS SPANNED)

    SMFOFFLG DS    XL1               SYSTEM INDICATOR

    SMFOFRTY DS    XL1               RECORD TYPE

    SMFOFTME DS    XL4               TIME, IN HUNDREDTHS OF A SECOND

    SMFOFDTE DS    PL4               DATE, 00CYDDDF, WHERE F IS THE SIGN

    SMFOFSID DS    CL4               SYSTEM IDENTIFICATION

    SMFOFSBS DS    CL4               SUBSYSTEM IDENTIFICATION

    SMFOFSBT DS    XL2'0002'         SUBTYPE OF RECORD - X'0002' INDICATES X

                                     THIS IS A LOGOFF RECORD

             SPACE

    *----------------------------------------------------*

    *  THE NEXT FIELDS ARE THOSE PRESENT IN THE LOGOFF                    *

    *  RECORD FOR THE END OF A USER SESSION.                              *

    *----------------------------------------------------*

             SPACE

    SMFOFMSO DS    CL8              JOBNAME

    SMFOFJID DS    CL8              JOBID (FROM SSIBJBID)

    SMFOFASI DS    Y                ASID

    SMFOFRV1 DS    XL2              RESERVED

    SMFOFUID DS    CL20             SECURITY USERID

    SMFOFLID DS    CL20             USERID PRESENTED AT LOGON (SAME AS    X

                                    SMFOFSID UNLESS CHANGED VIA MSIDTR    X

                                    SECURITY EXIT)

    SMFMEMA  DS    XL4              MEMORY ABOVE THE LINE (IN KILOBYTES)

    SMFMEMB  DS    XL4              MEMORY BELOW THE LINE (IN KILOBYTES)

    SMFZIIP  DS    XL4              ZIIP CPU NORMALIZED (HUNDREDTHS OF A SEC)

    SMFOFSRV DS    CL8              SERVICE NAME FROM THE SERVICE BLOCK

    SMFZPOCP DS    XL4              ZIIP ON CP (HUNDREDTHS OF A SEC)

    SMFOFCNT DS    XL1              CONNECTION TYPE

             SPACE

    SMFOFTSO EQU   1                 CONNECTION VIA TSO

    SMFOFCIC EQU   2                 CONNECTION VIA CICS

    SMFOFVTM EQU   4                 CONNECTION VIA VTAM

    SMFOFPSR EQU   8

    SMFOFCC  DS    XL3               COMPLETION CODE FOR THE TASK

    SMFOFACT DS    CL8               USER ACCOUNTING INFORMATION; THIS     X

                                     FIELD CURRENTLY PASSED AS LOW VALUE

    SMFOFCPU DS    XL4               CPU TIME IN HUNDREDTHS OF A SECOND

    SMFOFEXC DS    XL4               COUNT OF EXCP'S

    SMFOFLTM DS    FL4               LOGON DURATION IN HUNDREDTHS OF A     X

                                     SECOND

    SMFPRTY  DS    XL1               PRIORITY

    SMFCOMPL DS    XL1               COMPLETION TYPE

             DS    XL2               RESERVED

    SMFOFID1 DS    F                 SYSPLEX ID 1

    SMFOFID2 DS    F                 SYSPLEX ID 2

    SMFOPID  DS    XL20              POOLED USERID

    SMFOFA40 DS    CL40              FULL 40-BYTE ACCOUNTING FIELD

             SPACE

    SMFOFL   EQU   *-SMFOF           LENGTH OF THE SMF LOGOFF RECORD

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

ibi™ Open Data Hub for Mainframe Connectors

Copyright © 2021-2025. Cloud Software Group, Inc. All Rights Reserved.