With VSAM input, these exits can be used to pass the addresses of various VSAM exits or to insert passwords into VSAM input ACB’s. When control is returned to the sort, Register 1 must contain the address of a parameter list:
|
If both address entries are present, they may be in either order. Only one need be present. (QSAM parameters will be ignored.) The password list referenced in the parameter list is found in the exit routine and is formatted as follows:
2 bytes on a halfword boundary:
|
Followed by n 16-byte entries:
|
The exit routine must not alter this list. The sort may destroy the last byte of the DD name field.
The exit list is built using the VSAM EXLST macro, which provides the addresses of the VSAM exit routines. VSAM branches directly to the routines which must return to VSAM via the address in Register 14.
To do EODAD processing with E38, write a LERAD exit and check for X'04' in the FDBK field of the RPL: this indicates input EOD. This field is needed by the merge, so it should not be altered when returning to VSAM.
The following example shows how to code the return to the sort.