RETURN-CODE Codes (Fixed and Variable-Length Records) - mfx - 3.1

Syncsort™ MFX Programmers Guide

Product type
Software
Portfolio
Integrate
Product family
Syncsort™ software
Product
Syncsort™ MFX > MFX
Version
3.1
ft:locale
en-US
Product name
Syncsort™ MFX
ft:title
Syncsort™ MFX Programmers Guide
Copyright
2024
First publish date
2010
ft:lastEdition
2025-02-20
ft:lastPublication
2025-02-20T09:24:15.574000
The RETURN statement is used to return control to MFX. It must indicate one of the following return values to indicate the action to be taken by MFX.

0

Accept this record. This instructs MFX to accept the (unaltered) record in the record_up area.

4

Delete this record. MFX will delete the current record in the record_up area.

8

Do not return to this exit. This instructs MFX to close the exit for the remainder of the sort application. This return code might be used at SORTIN end-of-file (exit_status code 08) to indicate that extra records will not be added at this point. If SORTIN is present, the current input record and all subsequent records will be processed by MFX.

12

Insert a record. This instructs MFX to add the record in the work area to the input data set just ahead of the current record in the record_up area. When MFX returns control to the E15, the same record will be in the record_up area. The exit routine can then add another record from the work area or process the cur­rent record in record_up. When inserting a variable-length record, insure that its length is indicated in the len_wk parameter.

16

Terminate MFX. MFX will end its program and return to the calling program or the Supervisor. MFX will issue a completion code of 16 to indicate that the sort was unsuccessful.

20

Replace current record. MFX will replace the current record in the record_up area with the record in the work area. Be sure that the record in the work area is valid before passing it to MFX. When replacing a variable-length record, insure that its length is indicated in the len_wk parameter.