Coding a COBOL E15 Exit Routine - 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

A COBOL E15 exit program can be indicated through the EXEC statement’s PARM option (PARM='E15=COB'), the MODS control statement or the $ORTPARM DD statement.

Like any other E15 exit routine, the COBOL E15 exit routine is called each time a record is brought into Phase 1 of a sort or Phase 3 of a copy. Communication between MFX and the COBOL exit takes place in the LINKAGE SECTION of the COBOL program. For example, records are passed to the COBOL routine in the second definition (RECORD-UP) area of the LINKAGE SECTION.

If the COBOL exit routine uses any verb (EXHIBIT, DISPLAY, TRACE) which results in output to the SYSOUT DD statement, there is a potential conflict with MFX’s use of this DD statement. It is therefore recommended that you separate the output by using either MFX’s MSGDD PARM option or the COBOL compiler’s SYSx parm.