Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

IMS abend- Status code GP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
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    Post subject: IMS abend- Status code GP
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

Senior Member


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

PostPosted: Thu Apr 28, 2011 8:17 pm    Post subject:
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    Post subject: Reply to: IMS abend- Status code GP
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: 647
Location: Whitby, ON, Canada

PostPosted: Fri Apr 29, 2011 5:15 pm    Post subject:
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    Post subject:
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    Post subject: IMS abend- Status code GP
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    Post subject: Reply to: IMS abend- Status code GP
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    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts CA Workload Automation event code help vinu78 CA Products 10 Wed Mar 01, 2017 10:05 am
No new posts MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 2 Tue Jan 24, 2017 1:23 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 2 Thu Jan 12, 2017 12:02 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us