Figure 160 shows how QMF for VSE and your edit exit routine work together to format data using the edit codes you define.
When you enter your own code in a column of FORM.MAIN or FORM.COLUMNS, QMF passes certain characteristics of the data into the first interface control block. These characteristics reside in specific fields of the control block, which are discussed in Fields of the Interface control block. QMF also passes into the input area the data to be formatted and an output area that holds the formatted result.
IBM supplies three different versions of a sample edit exit routine. One version is for assembler (DSQUXDTA), one is for PL/I (DSQUXDTP), and one is for COBOL (DSQUXDTC).
The sample program supports two edit codes:
The sample program is commented so you can more easily see how a user edit routine works. You can use the sample as a template for creating your own program. These routines can be found in the QMF sublibrary on VSE.
The DSQUECIC program supplied with QMF is a sample meant to be used with the sample edit programs. Because of this, the program simply returns an error code when it is called, and QMF displays a message indicating you attempted to use an unsupported edit code.
After you write your edit exit program, name is DSQUECIC. Then translate, assemble (or compile), and link-edit the program to form the edit exit phase named DSQUECIC. You need to replace the IBM-supplied program with your new program. Do not change the name of the program; it remains DSQUECIC.
[ Previous Page | Next Page | Contents | Index ]