Figure 70 shows how QMF 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 six different versions of a sample edit exit routine in QMF810.SDSQSAPE.
Language | TSO and native z/OS Batch | CICS |
---|---|---|
COBOL | DSQUXDTC | DSQUXCTC |
PL/I | DSQUXDTP | DSQUXCTP |
Assembler | DSQUXDTA | DSQUXCTA |
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 QMF810.SDSQSAPE on z/OS.
QMF supplies the user edit routine DSQUEDIT for TSO and native z/OS, and a reentrant module, DSQUECIC, for CICS, which are located in the QMF library QMF810.SDSQLOAD. Delete or rename the QMF-supplied module when you are ready to use your edit routine.