VSAM Input to E18 and E38   - mfx - 3.1

Syncsort™ MFX Programmers Guide

Product type
Software
Portfolio
Integrate
Product family
Syncsort™ Software
Product
Syncsort™ MFX > MFX
Version
3.1
Language
English
Content type
Programmer’s Guide
Product name
Syncsort™ MFX
Title
Syncsort™ MFX Programmers Guide
Topic type
How Do I
Copyright
2024
First publish date
2010
Last edition
2024-08-27
Last publish date
2024-08-27T08:14:56.318001

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:

Table 1. Sample VSAM Parameter List for E18 and E38

X'05'

3 byte address of VSAM exit list

X'06'

3-byte address of password list

F'0' Fullword of zeros

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:

Number n of entries in list

Followed by n 16-byte entries: 

8-byte DDname

8-byte Password

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.

Figure 1. Sample E18 Program