G command code
You can use the G command code to indicate to IMS to skip randomization or the calling of the partition selection exit and search the database sequentially. While this command code can be used with other database types, it will affect the access of only HDAM/PHDAM, DEDB, and PHIDAM databases.
When accessing an HDAM/PHDAM, DEDB, or PHIDAM database that is accessed using a HALDB Partition Selection exit routine, and the records are not in sequence across partition boundaries, all keys in the requested range of a multiple qualification SSA might not be returned. If the first call to the database or command A is used, command code G can be used to sequentially read through the database until the SSA is satisfied.