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

IMS abend- Status code GP


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

New User


Joined: 31 Aug 2009
Posts: 73
Location: Mumbai

PostPosted: Thu Apr 28, 2011 8:12 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Apr 28, 2011 8:17 pm
Reply with quote

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
View user's profile Send private message
apandey

New User


Joined: 31 Aug 2009
Posts: 73
Location: Mumbai

PostPosted: Fri Apr 29, 2011 4:18 pm
Reply with quote

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
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Fri Apr 29, 2011 5:15 pm
Reply with quote

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
View user's profile Send private message
Peter Nancollis

New User


Joined: 15 Mar 2011
Posts: 47
Location: UK

PostPosted: Sun May 01, 2011 5:25 am
Reply with quote

You dont mention anything about updates - why checkpoint ?
Back to top
View user's profile Send private message
Akshya kumar padhy

New User


Joined: 24 Jun 2011
Posts: 1
Location: India

PostPosted: Thu Jul 07, 2011 5:55 pm
Reply with quote

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
View user's profile Send private message
mkarthikeyan

New User


Joined: 07 Aug 2008
Posts: 34
Location: Bangalore

PostPosted: Sun Jul 17, 2011 10:01 pm
Reply with quote

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
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 How to turn off 'ACTION' SDSF output ... TSO/ISPF 2
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts Job completes in JES, but the status ... IBM Tools 1
No new posts ISAM and abend S03B JCL & VSAM 10
Search our Forums:

Back to Top