MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

REPL not working. Any clues?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> IMS
View previous topic :: View next topic  
Author Message
mfjin
Beginner


Joined: 26 Apr 2003
Posts: 94
Topics: 17

PostPosted: Tue Mar 01, 2005 6:51 am    Post subject: REPL not working. Any clues? Reply with quote

I am currently replacing a value in a segment with a value from the input file. I do a GHU call and retrieve the segment into the io-area. Then modify the field i want to upate in the io-area and then issue the repl call.

I am using procopt=a for the sensegs i am replacing in the psb.

when i xpedite my pgm I can clearly see the repl working and the call returning a status code of spaces. but when i browse my db later it still shows the old value in the field i update.

Can you g ive any clues regarding what i might be missing?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Mar 01, 2005 8:37 am    Post subject: Reply with quote

Mfjin,

Make sure that you issued a checkpoint after the repl call.

Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mfjin
Beginner


Joined: 26 Apr 2003
Posts: 94
Topics: 17

PostPosted: Tue Mar 01, 2005 9:30 am    Post subject: Reply with quote

Kolusu

I am trying this out. but does a replace always have to be immediately followed by a chkp. can the chkp be issued down the line after doing a couple of checks following the repl calls or does the repl have to be immediately followed by the chkp?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Mar 01, 2005 9:34 am    Post subject: Reply with quote

Mfjin,

Quote:
I am trying this out. but does a replace always have to be immediately followed by a chkp. can the chkp be issued down the line after doing a couple of checks following the repl calls or does the repl have to be immediately followed by the chkp?


No you don't have to issue a Checkpoint immediately after every repl call. Just make sure that you don't abend after a successful REPL call. If your pgm abends , then all the changes are rolled back to the prior checkpoint state.

Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mfjin
Beginner


Joined: 26 Apr 2003
Posts: 94
Topics: 17

PostPosted: Tue Mar 01, 2005 10:09 am    Post subject: Reply with quote

Kolusu

My program does not abend. the repl issues a status code of spaces and the program also returns a zero rc. but my changes are not being reflected in the db. Since there is no abend after the repl calls do u see any other reason for this?
Back to top
View user's profile Send private message
mfjin
Beginner


Joined: 26 Apr 2003
Posts: 94
Topics: 17

PostPosted: Tue Mar 01, 2005 10:18 am    Post subject: Reply with quote

Kolusu

The field that I am modifying happens to be the key field of the segment.
can a field that happens to be the key be modifies using a REPL? It doesnt appear right to me. is there some other way (other than REPL) to do this (like using an ISRT and then a DLET to remove the old one)
Back to top
View user's profile Send private message
mfjin
Beginner


Joined: 26 Apr 2003
Posts: 94
Topics: 17

PostPosted: Tue Mar 01, 2005 10:19 am    Post subject: Reply with quote

sorry the field is not THE key but it is part of a concatenated key.
Back to top
View user's profile Send private message
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Wed Mar 02, 2005 11:41 am    Post subject: Reply with quote

I have seen instances where Xpediter does not update the database because a break-point creates a pseudo-abend in the module. Try it without setting a breakpoint between the REPL and the check-point. This may work for you.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> IMS All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group