The STARTKEY keyword positions to the root segment whose key value is root-key before processing begins. If the exact root key is not found, positioning depends on whether or not the database is in key sequence. For databases in key sequence order, positioning is to the closest root key greater than the requested root key. For databases in random key order, CA File Master Plus for IMS does not position to any value other than the exact root-key value that is supplied.
When used with the RELOAD command, STARTKEY applies to the ROOT segment on the EXTRACT file.
Syntax:
STARTKEY(root-key)
Parameters:
The partial or entire root segment key includes the following:
C'c…'—Character – matches specified case
X'hh…'—Hexadecimal
Example
This example extracts all STUDENT segments and their subordinate segments that have a key value greater than or equal to C'00002'.
EXTRACT, DBD(DBDIVP), STARTKEY(C'00002')
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|