| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| mfjin Beginner
 
 
 Joined: 26 Apr 2003
 Posts: 94
 Topics: 17
 
 
 | 
			
				|  Posted: Tue Mar 01, 2005 6:51 am    Post subject: REPL not working. Any clues? |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| kolusu Site Admin
 
  
 
 Joined: 26 Nov 2002
 Posts: 12394
 Topics: 75
 Location: San Jose
 
 | 
			
				|  Posted: Tue Mar 01, 2005 8:37 am    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| mfjin Beginner
 
 
 Joined: 26 Apr 2003
 Posts: 94
 Topics: 17
 
 
 | 
			
				|  Posted: Tue Mar 01, 2005 9:30 am    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| kolusu Site Admin
 
  
 
 Joined: 26 Nov 2002
 Posts: 12394
 Topics: 75
 Location: San Jose
 
 | 
			
				|  Posted: Tue Mar 01, 2005 9:34 am    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| mfjin Beginner
 
 
 Joined: 26 Apr 2003
 Posts: 94
 Topics: 17
 
 
 | 
			
				|  Posted: Tue Mar 01, 2005 10:09 am    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| mfjin Beginner
 
 
 Joined: 26 Apr 2003
 Posts: 94
 Topics: 17
 
 
 | 
			
				|  Posted: Tue Mar 01, 2005 10:18 am    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| mfjin Beginner
 
 
 Joined: 26 Apr 2003
 Posts: 94
 Topics: 17
 
 
 | 
			
				|  Posted: Tue Mar 01, 2005 10:19 am    Post subject: |   |  
				| 
 |  
				| sorry the field is not THE key but it is part of a concatenated key. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Bithead Advanced
 
  
 Joined: 03 Jan 2003
 Posts: 550
 Topics: 23
 Location: Michigan, USA
 
 | 
			
				|  Posted: Wed Mar 02, 2005 11:41 am    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		|  | 
	
		|  |