Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Programming Guide

Data input and output handling routines

E15—Input handling routine (Sort Exit E15)
E35—Output handling routine (Sort Exit E35)
Calling PLISRTA example
Calling PLISRTB example
Calling PLISRTC example
Calling PLISRTD example
Sorting variable-length records example

The input handling and output handling routines are called by Sort when PLISRTB, PLISRTC, or PLISRTD is used. They must be written in PL/I, and can be either internal or external procedures. If they are internal to the routine that calls PLISRTx, they behave in the same way as ordinary internal procedures in respect of scope of names. The input and output procedure names must themselves be known in the procedure that makes the call to PLISRTx.

The routines are called individually for each record required by Sort or passed from Sort. Therefore, each routine must be written to handle one record at a time. Variables declared as AUTOMATIC within the procedures will not retain their values between calls. Consequently, items such as counters, which need to be retained from one call to the next, should either be declared as STATIC or be declared in the containing block.

The E15 and E35 sort exits must not be MAIN procedures.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)