The QMF edit exit interface of COBOL in CMS consists of these parts:
Figure 176 shows the program structure of a COBOL edit exit routine in CMS.
The edit control block DXEECSC and the sample COBOL program DSQUXCTC, as distributed by QMF, use quotes (") to delimit literals. If your installation or program uses apostrophes (') instead, you have to change DXEECSC or copy the structure to your program, changing quotes to apostrophes.
Before you can create the module file, ensure that you can access the IBM-supplied control module (DSQUXILE). DSQUXILE is located on the QMF production disk. You need to access this disk prior to creating the module file.
To create the DSQUEDIT module file , use the CMS LOAD and GENMOD commands as follows:
GLOBAL TXTLIB SCEELKED LOAD DSQUXILE DSQUXDT ( RLDSAVE RESET DSQUXILE
You can run your edit routine in either 24-bit or 31-bit addressing mode. QMF manages address switching as required. You can specify 31-bit addressing on the CMS LOAD command. For example:
GLOBAL TXTLIB SCEELKED LOAD DSQUXILE DSQUXDT ( RLDSAVE RESET DSQUXILE AMODE 31 RMODE ANY
Issue the CMS GENMOD command to generate the DSQUEDIT module from the text files just loaded by the CMS LOAD command:
GENMOD DSQUEDIT