Modifying the JCL to specify the KEYLIST, KEYRANGE and MAXROOTS parameters
The previous three subsections describe how you can use the Extract dialog to generate the JCL for a job that extracts data from your IMS databases. There are, however, three parameters you can use that the Extract dialog does not generate.
These are the KEYLIST, KEYRANGE and MAXROOTS parameters.
The KEYLIST parameter allows you to specify a list of the root segment key values of the database records that you want extracted. You can, of course, specify this list in a keys file, but this parameter provides you with an alternative way of specifying the key list. Unlike the keys file, however, the KEYLIST parameter also allows you to specify partial keys - if the length of a specified root key value is less than the key length of the root segment, the function considers it to be the first part of the key and extracts all those database records with root key values that match the partial key value.
The KEYRANGE parameter allows you to specify the start and end of a range of root key values. The function extracts those database records that have a root key value in the specified range.
The MAXROOTS parameter allows you to limit the number of database records that the function extracts. When this parameter is specified, the function counts the number of database records that it has extracted and terminates when it reaches the specified limit.
For information on how you code these parameters, see Extract (IXB).