DISPLAY: The Wang DISPLAY utility is used to show conversion listings.
IBM: Sample parameter file demonstrating conversion of IBM to Wang VS COBOL.
TOIBM: Sample parameter file demonstrating conversion from VS COBOL to IBM.
A CONVERTC session begins with the parameter file, a list of search parameters and the respective actions to be taken when each item is located. This list is divided into two columns: the search options on the left, and the action options on the right. The options for these columns are explained in the documentation available by pressing PF(14).
When the list is complete, it is saved in a parameter file for future runs. Next the file or library to be processed is entered. If the action options in the parameter file are only for the print option (i.e. no source conversion), only the input file and library need be specified; when conversions are to take place, the user must specify input and output locations for the files.
If listings have been requested, the DISPLAY utility is invoked to show them at the conclusion of the session.
In addition to the many conversion options available within CONVERTC, special circumstances can be handled through a user exit. With this option, the current, prior, and next lines are passed to a program for special conversion.
OPTIONS Press PF(02) to create a new parameter file, PF(03) to modify a previously defined parameter file, PF(04) to process files using an existing parameter file, PF(05) for special conversion options, PF(06) to run the Wang DISPLAY utility, or PF(16) to exit. (There are no other data items on this screen.)PARMFILE Press (RETURN) to continue.
FILE (blank) Name of the parameter file to be used LIBRARY (blank) in this session. If a new file, the VOLUME (blank) name of the file to be created.
FILES Press (RETURN) to continue or PF(16) to return to main menu.
INFILE (blank) The location of the input file or INLIB (blank) library. Leave file name blank to INVOL (blank) process an entire library.
OUTFILE (blank) Optional; appears only when OUTLIB (blank) conversion action items are present OUTVOL (blank) in the parameter file.
OVERRIDE N Language type option. May be (N)o (CONVERTC makes best guess), (A)ssembler, (B)ASIC, (C)OBOL, (D)ata, (F)ortran, (R)PGII, (P)rocedure, or (Y)es (language prompted for each file).
The sample parameter file TOIBM provides some clue of the utility's power. TOIBM is intended to change some Wang COBOL references to similar functions in the IBM environment. When processed, this parameter file will produce the following results:
DATA DIVISION
extending through the PROCEDURE DIVISION
(see lines 1 and
6).
DATA DIVISION
range, change all references to
COMPUTATIONAL
, COMP
, or
COMP.
to COMP-3
, the IBM
equivalent. (See lines 2 - 4.)
DATA DIVISION
range, change all references
to BINARY
to the IBM equivalent, COMP
(see line 5).
PROCEDURE
DIVISION
(see line 7) and the IDENTIFICATION DIVISION
(see
line 9). Change other references as shown.