View previous topic :: View next topic
|
Author |
Message |
pingte
Active User
Joined: 03 Dec 2005 Posts: 120 Location: india
|
|
|
|
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 |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
Are you also checking for GB? You need to. |
|
Back to top |
|
|
pingte
Active User
Joined: 03 Dec 2005 Posts: 120 Location: india
|
|
|
|
Yes I am checking for GB also... Still getting the error. |
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
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 |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
Could you please post your code...... |
|
Back to top |
|
|
|