Intended working of Key selection
- Parameter 1 contains " KSTART " (space, KSTART, space, space, space)
- Parameter 2 contains a zoned (10,0) number indicating the number of records to be retrieved.
- Parameters 3 and further contain an actual value for the Formal parameters of the Entry
- Position in the database (file) using the values passed in the parameters 3 and higher.
- Read all records from the database (file) in sequence, but no more than the amount passed in the second parameter.
- Use a call to ITP's ISNDDTA program to return to ITP for every record that is read the key values and the values for any fields that are defined as Screen fields.
The key selection functionality is only required for Main entries, only when the Main Entry has Formal parameters defined, and only when these Main entries are used in a WITH or FORALL construct with an IN part, and no key values are specified when running the ITP Model. Refer to the ITP Integrator Manual for more information on how to specify the key values.