I have encountered a problem while running a DLI IMS program.
The program does:
1. Reads a sequential file.
2. Access an IMS-DB in read mode (PROCOPT=GOTP)
3. Invalid records are written to a VSAM file
While accessing the IMS-DB, my job ends up with status code GG. This is because the same database is being accessed in update mode (PROCOPT=AP) by some other job.
Can I issue a checkpoint (basic) without any restart logic in my IMS program (i dont need restart since db is not being updated by my program)?
If yes, what are the considerations to be taken?
If no, is there any other alternate approach to solve my issue
Joined: 01 Mar 2006 Posts: 290 Location: Basel, Switzerland
there are two things:
1. you can run an IMS job as a BMP
2. you can run an IMS job as a DLI
waht is now the difference?
as BMP, you can do everything, with almost no restrictions,
because you are running the job under IMS control region.
therefore also checkpointing is no problem.
database intergrity is done by the resource manager.
if you do this as a DLI and there is any update pcb,
you have to close the databases first! but note:
if you make updates and there is any error, you
have to reinstall database integrity youself!