Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Doubt in GU call

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
View previous topic :: :: View next topic  
Author Message
ravikumar_sri2001

New User


Joined: 04 Jan 2006
Posts: 1

PostPosted: Wed Jan 04, 2006 8:14 pm    Post subject: Doubt in GU call
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts Need help in triggering a PL1 module ... Varungv99 IMS DB/DC 0 Fri Apr 07, 2017 10:01 am
No new posts Doubt in MFS abdulrafi IMS DB/DC 2 Fri Oct 21, 2016 3:09 pm
No new posts Cobol EZASOKET call to SETSOCKOPT fails Andi1982 COBOL Programming 6 Thu Oct 06, 2016 7:12 pm
No new posts Strange EXEC function call in z/VM Willy Jensen CLIST & REXX 3 Wed Oct 05, 2016 2:07 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us