REDEFINE
and some PIC
types
will not be properly translated.
The program must be run interactively. The first screen describes some of the features and requirements of GENCTL. Next the program prompts for the input COBOL file. Additional documentation is available from this screen by pressing PF(14), or press PF(16) to exit the program without processing.
Next GENCTL prompts for the prefix to be used for the field names in the control file to be generated. This prefix can be up to four characters. GENCTL analyzes the source file, returning with a list of the files detected in the program; enter an 'X' next to each you wish to create a CONTROL file for and press (RETURN). Finally, the output file GETPARM (PRNAME CNTRL) will appear for each file to be created, allowing control of the final location of the output control file.
GENCTL will use the actual COBOL field names if they are eight characters or less, or generate a unique name and put the COBOL name into the ALIAS area of the CONTROL field. All fields will have standard options set; e.g., REPORT = YES, UPDATE = YES, etc.
COBOL source is available.