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

Question on Multiple DB Positioning


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

New User


Joined: 22 Dec 2008
Posts: 87
Location: US

PostPosted: Wed Mar 17, 2010 12:58 pm
Reply with quote

Hi All,

I do have the following DB structure which I need to sweep through -

Code:
                                              +01-------1+
                                              + SEGMENT1 +
                                              +----------+
                                                   |
     ---------------------------------------------------------------------------------
     |              |                              |                                 |
+02-------1+   +03-------1+                   +04-------1+                      +08-------1+
+ SEGMENT2 +   + SEGMENT3 +                   + SEGMENT4 +                      + SEGMENT8 +
+----------+   +----------+                   +----------+                      +----------+
                                                   |                                 |
                                   ------------------------------------              |
                                   |               |                  |              |
                             +05-------1+    +06-------1+       +07-------1+    +09-------1+
                             + SEGMENT5 +    + SEGMENT6 +       + SEGMENT7 +    + SEGMENT9 +
                             +----------+    +----------+       +----------+    +----------+



In case I plan to use multiple DB positioning (avoid repositions), will the code have better performance?. I will be reading SEGMENT1, SEGMENT2, SEGMENT3, SEGMENT4 and SEGMENT6.

Regards,
Sumesh
Back to top
View user's profile Send private message
manikawnth

New User


Joined: 07 Feb 2007
Posts: 61
Location: Mumbai

PostPosted: Wed Mar 17, 2010 2:50 pm
Reply with quote

How will u be reading these segments?
Just the first occurrence or u sweep thru all the occurences of these segment types.
Are the segments qualified?
The performance depends on the functionality you want thus determining the approach.
Will you be reading all the segments back and forth or just read once and leave!!!
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Wed Mar 17, 2010 6:50 pm
Reply with quote

Multiple PCBs within the same PSB for the same DBD - multiple positioning - is sometimes tricky. Think carefully about your process and why you need more than 1 position. If you can tell us detail about your process, we can help you decide.
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Thu Mar 18, 2010 6:10 pm
Reply with quote

Take a look at this post...

ibmmainframes.com/viewtopic.php?p=228661#228661
Back to top
View user's profile Send private message
cybertaurean

New User


Joined: 22 Dec 2008
Posts: 87
Location: US

PostPosted: Fri Mar 19, 2010 1:33 pm
Reply with quote

Hi All,

Apologies for the late reply.

Yes, I would want to sweep through the entire DB.

Say, I plan to use path call for SEGMENT4 and SEGMENT6 in the DB shown above, would it be better to have multiple positioning in place?

Regards,
Sumesh
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Fri Mar 19, 2010 4:21 pm
Reply with quote

Well, you still have not explained your process. What do you think multiple positioning has to do with your planned path call?
Back to top
View user's profile Send private message
manikawnth

New User


Joined: 07 Feb 2007
Posts: 61
Location: Mumbai

PostPosted: Mon Mar 22, 2010 11:13 am
Reply with quote

Hi Cyber,
Same concern here too...
Still i dint understand ur process?
List down step by step from which segment u want to start and the complete retrieval process and where u want to end.

Multiple positioning is useful only when u r in forward retrieval process and u want to refer a segment which is back to the current position.
Still you may not require the multiple positioning if it could be solved by some command codes.

Kindly elaborate your entire sweep sequence.

Thanks,
Manikanth
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Grouping by multiple headers DFSORT/ICETOOL 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
Search our Forums:

Back to Top