
Why not just keep the sequence number in your DB file. Before you add the record, chain with the sequence number. If the record is found, skip it. You can also store the last sequence number - either in a file or in a data area - and use it to control which journal entries you receive with the RCVJRNE command - one of the parms is starting sequence number.
As to automatically restarting the REVJRNE job:
1. Set a flag on the system(file or data area) showing the status of the job. Submit/Started/Completed.
2. Setup a scheduled job to run and check the flag. If it is not completed, resubmit the REVJRNE job. If it is started, check if the job is active. If not, resubmit it.
If you need more info, let me know.
I hope this helps.
Len Hrabar

I’m not sure what you’re after. Are you trying to build a permanent record of the journal entries? If so, the Journal Receiver *JRNRCV is a better store — it can’t be changed whereas a DB2 table can be. We write programs that use RCVJRNE to build a work file and run then periodically run the report program. Then we simply pick a starting and ending point in time for which to receive the journal entries.

Hi All,
Thanks for the replies. I will implement your suggestions and get back if stuck again in some problem.
Thanks,
P.Prasad











