View previous topic :: View next topic
|
Author |
Message |
apandey
New User
Joined: 31 Aug 2009 Posts: 73 Location: Mumbai
|
|
|
|
Hi,
I hv written a Cobol-IMS pgm in which I am using GN call on parent segment with Unqualified-SSA then after GNP call on child segment with Unqualified-SSA, whatever values found, writing it to o/p file. This whole process is working fine without using Checkpoint restart logic.
Since it is IMS pgm, I must need to include Checkpoint Restart logic as per code standrards.
Initial/1st checkpoint issued. Kept Checkpoint frequeny to 100.
I m calling Checkpoint Issue para after Calling CHILD segment with
unqualified SSA and incrementing Chekpoint input counter by 1 when call is successful.
My program got abended after taking 2 checkpoints in the Child segment's Call para by Giving status Code as GP.
Can anyone pls help. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
The explanation of GP is pretty clear in the manuals:
Quote: |
GP
Explanation: The program issued a GNPwhen there is no parentage
established, or the segment level specified in the GNPis not lower than the
level of the established parent.
Programmer Response: Make sure you have established parentage before
issuing GNP, and check the segment level specified by the GNP.
|
Looks like you are investigating at wrong place. |
|
Back to top |
|
|
apandey
New User
Joined: 31 Aug 2009 Posts: 73 Location: Mumbai
|
|
|
|
Now I made come changes to code, Calling Parent segment with GN with Q-SSA, Calling Child segment with GNP with Unqualified-SSA. program is again working fine widout chkpoint restrt logic.
Now when I am applying Chekpoint Retsrt logic, 1st Taking initial Chekpoint, Kept Chekpoint Input Frequency to 10, and incrementing the chkpoint input counter 1 by 1 when Parent call is successful.
Issuing the middle/2nd checkpoint after calling Parent segment and before calling child segment.
While testing, initial chekpoint is taken, then after 1st checkpoint is issued after reading 10 records from parent segment. Once it issues the checkpoint after reading 10 records and calls child segment with GNP call with UNQualified-SSA, it is abending and giving status code as "GP" . |
|
Back to top |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 765 Location: Whitby, ON, Canada
|
|
|
|
The CHKP call may cause you to lose data base positioning. You can find an explanation of how/when this happens in the IMS Programmers Guide.
The bottom line is that after a CHKP call, you usually have to issue a GU to re-establish your position. |
|
Back to top |
|
|
Peter Nancollis
New User
Joined: 15 Mar 2011 Posts: 47 Location: UK
|
|
|
|
You dont mention anything about updates - why checkpoint ? |
|
Back to top |
|
|
Akshya kumar padhy
New User
Joined: 24 Jun 2011 Posts: 1 Location: India
|
|
|
|
Abended with GP because parentage is lost. You are issuing checkpoint call in between GN and GNP call.
And also why you need CHKP call as you are not doing any update as well said by Peter. |
|
Back to top |
|
|
mkarthikeyan
New User
Joined: 07 Aug 2008 Posts: 34 Location: Bangalore
|
|
|
|
When you issue CHKP call, the position is lost for all database expect GSAM database. Please reestablish the position as advised by Don. |
|
Back to top |
|
|
|