Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to solve problem in establishing parentage.

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

New User


Joined: 07 Feb 2007
Posts: 22
Location: hyderabad

PostPosted: Wed May 14, 2008 9:54 am    Post subject: How to solve problem in establishing parentage.
Reply with quote

Database Structure:
Parent segment
-Child segment 1
-Child segment 2

Requirement:
Read the parent segment. check for the field "Route ID".
If it is equal to 'AA' then update it to 'BB'.
Then check if this record has Child segment 1.
If it is not present then insert one.

Logical flow:
1. A GHU call was made on Parent segment( Qualified Parent segment SSA). then the validation processing is done.
2. Then a REPL call was made with the updated values for the parent segment.
3. A GNP call was made for the Child segment 1(Qualified Parent SSA and Unqualfied Child segment SSA)
4. If not present make an ISRT call(Qualified Parent segment SSA and unqualified Child segment SSA).

In the above scenario, steps 1-3 are working fine. but there is a problem in ISRT call. while making an ISRT call, the insertion of child segment is made into first record of the Database. this proves that there is some problem in establishing the parentage though i am using a qualified Parent segment SSA in ISRT call.
Please suggest ways to overcome this problem.

Thanks in advance,
Srikar
Back to top
View user's profile Send private message

rajesh1183

New User


Joined: 07 Jan 2008
Posts: 98
Location: Hyderabad

PostPosted: Wed May 14, 2008 12:32 pm    Post subject:
Reply with quote

Instead of GNP in step 3, try a GU(Qualified Parent SSA and Unqualfied Child segment SSA), becoz GU or GN also sets the parentage...
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

PostPosted: Sat May 17, 2008 2:45 pm    Post subject:
Reply with quote

You can combine step 3 and 4 if the child has a sequence field. If it already existed status code II will be returned. And the reach of a GNP is limited to the root segment so you don't need the qualification SSA for the root.
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 SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm
No new posts Problem with GETMAIN command amitc23 CICS 6 Thu Sep 01, 2016 1:01 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us