14
Using the REFORMAT Utility
The REFORMAT Utility converts source programs between terminal format and
conventional ANSI format. Consider the two formats and their characteristics:
•
Terminal format eliminates the line-number and identification fields of ANSI
format and allows horizontal tab characters and short lines. It saves disk
space and decreases compile time.
•
Conventional ANSI format produces source programs compatible with the
reference format as defined in the ANSI-85 COBOL Standard.
The Compaq COBOL Reference Manual describes both formats in detail.
On OpenVMS, REFORMAT is installed by the Compaq COBOL installation
procedure (if you answered "yes" to the query during installation), and is placed
in the following location:
SYS$SYSTEM:REFORMAT.EXE
♦
14.1 Running the REFORMAT Utility
On OpenVMS, you may define REFORMAT as a foreign command as follows:
$ REFORMAT :== "$SYS$SYSTEM:REFORMAT.EXE"
♦
To run the REFORMAT Utility, type the following command:
On OpenVMS
$
reformat
♦
On Tru64 UNIX
%
reformat
♦
The following example shows a typical session using the REFORMAT Utility (the
command line prompt is omitted):
Using the REFORMAT Utility 14–1
Содержание COBOL AAQ2G1FTK
Страница 22: ......
Страница 30: ......
Страница 94: ......
Страница 110: ......
Страница 146: ......
Страница 180: ......
Страница 194: ...Processing Files and Records 6 1 Defi...
Страница 300: ......
Страница 490: ......
Страница 516: ......
Страница 517: ......
Страница 530: ......
Страница 534: ......
Страница 590: ......
Страница 620: ......