Thread: IMS

GU vs GN - still fuzzy after reading the manual twice

Started by Tyler • user4 replies135 viewsLast activity 2 weeks ago
Post #1
0 votes
Tyler
Reputation
34
Posts: 19
Joined: Nov 8, 2025, 1:44 PM
Posted: Jul 25, 2026, 10:15 AM

IMS DB training. I can parrot "GU is get unique, GN is get next" but when I write the call sequence I second-guess myself.

For "read this customer by key, then walk their orders" is it GU on cust then GN on order with the right SSA parents? Or am I inventing that?

Post #2
0 votes
Derek
Reputation
204
Posts: 6
Joined: Sep 16, 2024, 7:55 AM
Posted: Jul 25, 2026, 12:15 PM

That is the usual pattern. GU with a qualified SSA on the customer. Then GN (or GNP) under that parent for the orders. Watch your SSA qualifications or you will GN yourself into the next customer.

Post #3
1 votes
Val
Reputation
178
Posts: 9
Joined: Nov 22, 2024, 8:19 AM
Posted: Jul 26, 2026, 11:15 AM

Draw the hierarchy on paper once. GU positions. GN moves forward. GHU/GHN if you plan to update.

Post #4
0 votes
Tyler
Reputation
34
Posts: 19
Joined: Nov 8, 2025, 1:44 PM
Posted: Jul 26, 2026, 3:15 PM

Paper sketch helped more than the manual. Thanks.

You must be signed in to reply to this thread