COBOL FORMAT causes GenFormat to generate a COBOL85 library program to handle record formatting. The declaration specifies the name of a particular filter and the accessory must use that filter when using the COBOL format. The filter cannot be DBFILTER. (Use the filter EVERYTHING if you want all records.)
Compiled COBOL formats improve throughput by about 10%.
COBOL FORMAT COMMAQUOTEALPHA USING FILTER EXAMPLEFILTER
PREFIX STRNUM CHANGECODE
Note the following:
Following is the name of the generated COBOL program. If you declare more than one COBOL format, their names must be unique for the first 17 characters because the format name is part of the file name of the generated layout file.
Following are the COBOL COPY files for the layouts: