RESVFILE: List of COBOL reserved words. Must be present for operation.
EZFORMAT: The Wang EZFORMAT utility. Called for screen definitions.
EZPRINT: The EZPRINT utility. Called to define printed output.
EDITOR: The Wang EDITOR is called to edit the generated source file.
PROCEDURE DIVISION
is created
without application-specific information unique to that
program.
The first screen prompts for the name and location of the
generated source file and whether the file is to be edited
immediately afterwards. Further screens define the files to
be used, the open modes for those files, and any program
options, such as FIGURATIVE-CONSTANTS
, dates, GETPARMs,
PUTPARMs, links, or sorts. EZFORMAT screens are used for
screen file input and EZPRINT files for report format; either
control files or COPY library files can be used for file
definition. Finally, the EDITOR is invoked and the source
can be completed.
PROCEDURE DIVISION
.
COBGEN can also simplify many programming tasks involving the LINK, PUTPARM, GETPARM, or SORTLINK subroutines. Code for all of these items can be generated at a fraction of the effort required manually. For example, COBGEN might be the easiest way to create a GETPARM screen within a COBOL program.
Minor bug: the call to the EDITOR specifies the language as 'C'; this must be changed to 'COBOL to continue.