Each database that the REPORT writer is capable of extracting data from is controlled via a handler routine. The handler routine is declared on the REPORT statement (in a report definition file) by using the SRCRTN, SRCSHR and SRCARG parameter options. The various available handler routines are described in the following sections.
Each handler routine identifies the names and attributes of the various fields used in each database. Only the field names identified by the handler routine can be used in a PRINT, SELECT or SORT statement.