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

Doubt in GU call


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

New User


Joined: 04 Jan 2006
Posts: 6

PostPosted: Wed Jan 04, 2006 8:14 pm
Reply with quote

Hi Gurus,

Assume a Database with four levels and each level has only one Segement-type.i.e, (A-->B--->C---D) and assume that one-to-one relationship in consecutive levels. That is,

A1-->B1--->C1---D1
A2-->B2--->C2---D2
A3-->B3--->C3---D3 and so on.

a. Assume that position is established in C10. If we issue GU call with unqualified SSA in all levels , which occurance will it retrieve in "D". Is it D1 or D10 ?.

b. Manual says "If IMS has a position established at the missing level, the SSA that IMS uses is derived from that position, as reflected in the DB PCB.". I assumed that this point is applicable for only segments with Key fields.

C. Assume that position is established at A10. If I issue GU call with unqulified SSA for "A" segment, which occurance of segment "A" will be retrieved. Is it A1 or A10 ?.

Suppose there is no key in segment "C" and position is established at that level. If we issue GU call with qualified SSA in first 2 levels and unqualified SSA in third level, how SSA for "C" will be built ?.

Following statements are taken from IBM manual related to GU call.


If you leave out an SSA for one of the levels in a GU call that has multiple SSAs, IMS assumes an SSA for that level. The SSA that IMS assumes depends on current position:

a.If IMS has a position established at the missing level, the SSA that IMS uses is derived from that position, as reflected in the DB PCB.

b.If IMS does not have a position established at the missing level, IMS assumes an unqualified SSA for that level.

c.If IMS moves forward from a position established at a higher level, IMS assumes an unqualified SSA for that level.

d.If the SSA for the root level is missing, and IMS has position established on a root, IMS does not move from that root when trying to satisfy the call.




Thanks,
Ravikumar.
Back to top
View user's profile Send private message
sri.mainframes

New User


Joined: 16 Feb 2006
Posts: 29
Location: MUMBAI

PostPosted: Wed Apr 12, 2006 7:11 pm
Reply with quote

Hi Ravi kumar,

Ims always starts from the root in case of GU call.
it never consider the current position like GN & GHN.

If u provide unqualifieed SSA's at all levels , it retrieves the first occurence of the last level , in ur case it retrieves D1.

correct me if i am wrong
sri.prince
Back to top
View user's profile Send private message
rajesh_1183

Active User


Joined: 24 Nov 2005
Posts: 121
Location: Tadepalligudem

PostPosted: Mon Apr 17, 2006 10:20 am
Reply with quote

a) It will retrieve D1

C) It will retrieve A1

corrections welcomed...

Thanks,
Rajesh
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 Error while running web tool kit REXX... CLIST & REXX 5
No new posts Call program, directly from panel CLIST & REXX 9
No new posts Batch call online program, EXCI task ... CICS 3
No new posts CSQBGET - Call giving completion code... COBOL Programming 3
No new posts CICS DPL call CICS 6
Search our Forums:

Back to Top