|
View previous topic :: View next topic
|
| Author |
Message |
kirankumart
New User

Joined: 04 Aug 2009 Posts: 10 Location: Hyderabad
|
|
|
|
Can anyone please help me that what is the basic difference between GHN and GHU in an IMS call.
Where the control goes when a GHN call returned with satuscode spaces?
Where the control goes when a GHU call returned with satuscode spaces? |
|
| Back to top |
|
 |
Anuj Dhawan
Superior Member

Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
| Well - they will do what the programmer will tell them to. GHN will get the next child under the same parent and GHU wil get the unique segment under the same-parent. |
|
| Back to top |
|
 |
Ajay Baghel
Active User
.jpg)
Joined: 25 Apr 2007 Posts: 206 Location: Bangalore
|
|
|
|
I think the above needs a correction:
| Quote: |
| GHN will get the next child under the same parent and GHU wil get the unique segment under the same-parent. |
GHN will retrieve next segment w.r.t current position in database and lock it (so not necessarily under same parent)
Similar for GHU.
Thanks
Ajay |
|
| Back to top |
|
 |
Ajay Baghel
Active User
.jpg)
Joined: 25 Apr 2007 Posts: 206 Location: Bangalore
|
|
|
|
| and the difference b/w GHN and GHU is same as the basic difference b/w GN and GU. |
|
| Back to top |
|
 |
Anuj Dhawan
Superior Member

Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Well, mention about "parent" is stupid in my post - I'm not sure why did I mention it, at first place. (looks like I should visit my parents soon).
| Quote: |
| GHN will retrieve next segment w.r.t current position in database and lock it |
That's correct , actually, before your program can delete or replace a segment, it must retrieve the segment and indicate to IMS that it is going to change the segment in some way. The program does this by issuing a Get call with a "hold" before deleting or replacing the segment. When the program has successfully retrieved the segment with a Get Hold call, it can delete the segment or change one or more fields (except the key field) in the segment.
If you find out that you do not need to update it after issuing a Get Hold call, you can continue with other processing without releasing the segment. The segment is freed as soon as the current position changes when you issue another call to the same PCB that you used for the Get Hold call. In other words, a Get Hold call must precede a REPL or DLET call. However, issuing a Get Hold call does not require you to replace or delete the segment. |
|
| Back to top |
|
 |
|
|