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

Root Segments order


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

New User


Joined: 04 Jul 2005
Posts: 31

PostPosted: Thu Mar 14, 2013 4:12 pm
Reply with quote

I was under assumption that the root segments keys will be in the ascending order. When I checked my workshop database root segments, I wondered they are not in the sequence. For example if have TYRE-NO is defined as key in the root segment of length 5 bytes. The order I am seeing (for each GN calls) '55555', '44444', '11111', '33333'.

Why is it so like this?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Mar 15, 2013 2:04 pm
Reply with quote

Possibly your Data-base is HDAM. Form manuals, in a hierarchic direct access method (HDAM) database, the root segments of records are randomized to a storage location by an algorithm that converts a root's key into a storage location. No index or sequential ordering of records or segments is involved.

The randomizing module reads the root's key and, through an arithmetic technique, determines the storage address of the root segment. The storage location to which the roots are randomized are called anchor points or root anchor points (RAPs).
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Fri Mar 15, 2013 8:03 pm
Reply with quote

If you want to know WHY they do this, it's all about physical disk access.

If your key is something that goes up when new data is added, ie first case is 1, second case is 2, then all of your new data would be lumped together on the disk.

Since most of the work being done is on the newest set of cases, then all of the disk access would be trying to get to the same areas of the hard drives. There are only so many concurrent read/writes allowed by any system of access, so this would create a huge bottleneck on a busy system.

Therefore, they spread around the data so that concurrent accesses are reading/writing widely separated areas of the disk(s).
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 Rotate partition-logical & physic... DB2 0
No new posts DB2 Load - Sort Or order BY DB2 1
No new posts GDG all in sequence order JCL & VSAM 9
No new posts Combining more 4 files with sorted or... DFSORT/ICETOOL 3
No new posts TWS PIF (EQQYCOM) Rexx - Occurrence S... IBM Tools 0
Search our Forums:

Back to Top