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
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

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.