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

Segment Update - getting DJ


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

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Tue Dec 16, 2008 5:45 pm
Reply with quote

I have a parent segment A (with key as Y). A has a child B. B does not have any key. B can have any number of occurences.

Objective : Update all occurences of B

Logic used :

GHU on A with key (used SETPARENT on A)
REPL 1st occurence of B --> Success

GHNP on A (used set parent on A)
REPL on 2nd occurence of B --> success

I am running the GHNP in loop (till GE for seg B).

But after the 2nd update, on the 3rd REPL.. I am getting a DHDJ abend.

Am I going wrong in the logic? Any pointers will be highly appreciated!
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Tue Dec 16, 2008 9:09 pm
Reply with quote

Are you also checking for GB? You need to.
Back to top
View user's profile Send private message
pingte

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Wed Dec 17, 2008 9:14 am
Reply with quote

Yes I am checking for GB also... Still getting the error.
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Wed Dec 17, 2008 6:07 pm
Reply with quote

I always wonder about why people new to IMS feel the need to set parentage. The same thing can be accomplished with a fully qualified parent - all the way up the path - and an unqualified ssa for the child.
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Wed Dec 17, 2008 6:43 pm
Reply with quote

Could you please post your code......
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 Read a flat file and update DB2 table JCL & VSAM 2
No new posts how to update an ISR appl var from an... TSO/ISPF 8
No new posts DB2 SQL query to read and update data... DB2 12
No new posts IMS SEGMENT READ ISSUE IMS DB/DC 1
No new posts SKIP LOCKED DATA in UPDATE statement DB2 9
Search our Forums:

Back to Top