JTRTSEQ: Journal Sequence Number in IDMS
search cancel

JTRTSEQ: Journal Sequence Number in IDMS

book

Article ID: 247037

calendar_today

Updated On:

Products

IDMS

Issue/Introduction

This article describes how to find the journal sequence number, JTRTSEQ, in an IDMS journal file.

Environment

Release : All supported releases.
Component : IDMS/DB

Resolution

The journal sequence number, JTRTSEQ, can be found eight bytes after the journal record type, which is visually identifiable as one of the distinct four-byte values, e.g. TIME/BGIN/ENDJ/BFOR/AFTR.

Note the following example:

!-......TIME.Çgg®ü.×......èÄSYSTEM01 Ç...Çgd.÷...........æ..BGIN.Çgg®ü.Â......èÀ
56000300ECDC0688AD2B00000056EEEECDFF460006882E22000203000900CCCD0688AD3600000056
A000040039451877FCDF000007432823540118001874B190000204000C0027951877FCA200000744

c'TIME' is JTRTTYPE - the journal record type.
The next eight bytes, x'01688787AFDC2DBF' are JTRTGMT, the time-stamp.
The next eight bytes, x'0000000000075463' (highlighted) are JTRTSEQ, the journal sequence number.

The journal sequence number increases by one in each successive record.
Note that the next one is x'0000000000075464'.

The journal record DSECT is documented at #JTRDS.