Examples of single partition processing

The following examples illustrate the circumstances in which the FM, GE, and GB status codes are returned to an application program that is restricted to processing a single partition.

In all of the examples, the DB PCB usage is restricted to a HALDB partition that contains records with root keys 201 through 400.

GU rootkey=110
The root key 110 is outside the range of root keys for the partition. IMS returns an FM status code.
GU rootkey=240 GN rootkey=110
The processing moves forward from root key 240 to find a key that is equal to 110. Because 110 is lower than 240, IMS returns a GE status code.
GU rootkey=240 GN rootkey>=110
The processing moves forward from root key 240 to find a key that is equal to or greater than 110. If a key is not found before reaching the end of the partition, IMS returns a GB status code.
GN rootkey>=110
The processing attempts to start the search at key 110. Because the key is outside of the root key range of the partition, IMS returns an FM status code.