IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Confusing problem in checkpoint restart program


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
itssreehere
Warnings : 1

New User


Joined: 10 Jan 2006
Posts: 65
Location: chennai

PostPosted: Fri Mar 17, 2006 6:30 pm
Reply with quote

Hi all,

I've a checkpoint restart program.Flow of the program is like this,

GN call to DB1.
increase counter by 1
processing
GHU call to DB1.
REPL call to DB1.

if counter > 5
CHKP-call-DB1-para.
end-if

again GN call to DB1.
----------------------------------------


It is working fine till counter reache 5.ie. am geeting the problem after checkpointing.Following is the logic in CHKP-call-DB1-para.

issue a check point call to DB1. Now it lost all the pointers to DB1.So we need to reset the ponter at the current record.For doing that am issuing a GU call with the saved key. This should position the pointer at the check pointed record and then again GN calls will be issued as usual.


But this GU call is returning 'GE', eventhough the record exists in DB1.
Also the GN and GHU for the same key eas successful. But for the same key GU is returning GE.

We are sure that it is not the problem with the program. This code is working fine in production. We are testing it in BTSB. Either it will be DBD/PSB/BTSB environment proble. Did anybody faced a similar case ever? We checked the PSB and DBD many times and foun that it is okay

Thanks,
Sreejith
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Fri Mar 17, 2006 7:33 pm
Reply with quote

hy itssreehere,

you have to make a qualifiesdssa call to dl1.
because your first call must be a GU, because
after checkpoint the position is lost and you
have to reposition. this also beacause with
checkpointing, your program is enabled for
restart after any abend. therefore on the checkpoint
write out in the restart-area your last key accessed,
and then a GU with GT on this key.

martin9
Back to top
View user's profile Send private message
itssreehere
Warnings : 1

New User


Joined: 10 Jan 2006
Posts: 65
Location: chennai

PostPosted: Sat Mar 18, 2006 8:38 pm
Reply with quote

Ya Martin.We are doing the same. We are reading the saved key and reposition the pointer with a qualified GU call. This code is working in production.But in BTSB environment this GU call returns 'GE' eventhough it is present in data base. Also the previous GN and GHU calls were successfull for the same key.

Sreejith
Back to top
View user's profile Send private message
itssreehere
Warnings : 1

New User


Joined: 10 Jan 2006
Posts: 65
Location: chennai

PostPosted: Mon May 07, 2007 5:23 pm
Reply with quote

FYI.. The issue was with the BTSB ID we used. The DBD lib used for loading data in to BTSB and DBD lib used for running the program were different.I re-organized the BTSB ID with same DBD lib.Now it's working with same program

Sreejith
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top