UNLOADEXIT
The UNLOADEXIT option allows you to specify the name and programming language of a user-written exit routine.
Restriction
UNLOAD PLUS ignores this option if you also specify FORMAT BMCLOAD.
exitName
UNLOAD PLUS passes every output record to the specified exit before writing the record to the unload data set. If UNLOAD PLUS performs sorting, the utility passes the record to the exit routine before the sort process, but after building the sort key. UNLOAD PLUS invokes BMCSORT after the user exit when you specify the ORDER YES or ORDER BY options. The exit routine can inspect, modify, or discard records before UNLOAD PLUS writes the output records to the unload data set.
For information about user-defined variables, and requirements and restrictions when creating an exit routine, see UNLOAD-PLUS-user-exits.
program language
UNLOAD PLUS supports user-written exit routines in assembler, C, LE C, COBOL II, and LE COBOL. After you specify the exit name, specify the program language of the exit routine as shown in supported program languages for user exits table.
For user exits in any program language except ASM, UNLOAD PLUS sets MAXSORTS to 1.
Supported program languages for user exits
Keyword | Description |
---|---|
ASM | (Default) Specifies an assembler language program |
COBOL2 | Specifies a COBOL II language program |
LE_COBOL | Specifies an LE COBOL language program |
C | Specifies a C language program |
LE_C | Specifies an LE C language program |
Related topic