ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Differences between journal type PX and PT

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Differences between journal type PX and PT

    Hi all,

    I'm trying to understand what are the journal type PX and PT means. After reading some help materials from IBM, i still cant understand it

    From my understanding, say... a program write one line of new record then i'll have PT. then other program delete/amend the new record, then i'll have PX? or vice versa?

    help to enlighten me. thank you

  • #2
    Re: Differences between journal type PX and PT

    From IBM ... Think it relates to the re-use deleted records ....

    R PT Record added to a physical file member. If the file
    is set up to reuse deleted records, then you may receive either a PT or PX
    journal entry for the change
    This journal entry may have data which can only be
    accessed by using either the QjoRetrieveJournalEntries API or the RCVJRNE command. For the RCVJRNE command, use
    the ENTFMT(*TYPEPTR) or ENTFMT(*JRNENTFMT) parameters. In all other interfaces,
    if the data is not visible, the incomplete data indicator will be on and
    *POINTER will appear in the Entry Specific Data. For more information, refer to
    Work with pointers in journal
    entries.


    See the layout for the variable width portion of this journal
    entry.
    R PX Record added directly by RRN (relative record
    number) to a physical file member. If the file is set up to reuse deleted
    records, then you may receive either a PT or PX journal entry for the
    change
    This journal entry may have data which can only be
    accessed by using either the QjoRetrieveJournalEntries API or the RCVJRNE command. For the RCVJRNE command, use
    the ENTFMT(*TYPEPTR) or ENTFMT(*JRNENTFMT) parameters. In all other interfaces,
    if the data is not visible, the incomplete data indicator will be on and
    *POINTER will appear in the Entry Specific Data. For more information, refer to
    Work with pointers in journal
    entries.


    This entry may have minimized entry specific data (ESD). It
    will have minimized ESD if its corresponding object type deposits minimized
    journal entries through the MINENTDTA parameter for this journal or journal
    receiver.

    This entry may have minimized entry specific data (ESD). It
    will have minimized ESD if its corresponding object type deposits minimized
    journal entries through the MINENTDTA parameter for this journal or journal
    receiver.

    See the layout for the variable width portion of this journal
    entry.
    Greg Craill: "Life's hard - Get a helmet !!"

    Comment

    Working...
    X