HP COBOL Version 2.9 for OpenVMS Alpha and OpenVMS I64

HP COBOL Version 2.9 for OpenVMS Alpha and OpenVMS I64 SPD 45.92.16
program. The DISPLAY statement converts data
from internal numeric format to ASCII display format;
and the ACCEPT WITH CONVERSION statement
converts ASCII display input characters to internal
numeric formats, as appropriate. The terminal-type
is recognized at run time from information provided
by the operating system.
RMS-STS and RMS-STV special registers may be
examined to assist debugging. These registers con-
tain status values from the Record Management Sys-
tem (RMS) for OpenVMS.
File sharing and record locking features enable more
than one user to access data at the same time.
Many file capabilities are available through RMS, in-
cluding extensions for descending keys and duplicate
primary keys.
Conditional compilation serves to make debugging
easier.
Source program terminal format recognition is sup-
ported.
ACCEPT support for 4-digit years.
HP COBOL implements several statements designed
to make programming easier in the OpenVMS environ-
ment:
CALL statement extensions: BY VALUE, BY DE-
SCRIPTOR, OMITTED, and GIVING
VALUE IS EXTERNAL Access to link time con-
stants
USAGE IS POINTER Address data type
VALUE IS REFERENCE Compile time address
evaluation
SET TO REFERENCE Run-time address evalua-
tion
SUCCESS/FAILURE Class conditions
Other extensions include:
31-digit numeric user items and 32-digit intermedi-
ates
D-float, F-float, G-float, and IEEE floating point han-
dling
X/Open SCREEN SECTION
X/Open specified RETURN-CODE special register
X/Open specified ASSIGN TO syntax
X/Open file sharing and record locking features
X/Open command line and logical names support via
ACCEPT and DISPLAY
X/Open LINE SEQUENTIAL
Enhanced support for ‘‘foreign’’ extensions with im-
proved diagnostic messages
The HP COBOL compiler produces an object module
from a source program. The compiler is capable of
producing a source listing with embedded diagnostics
indicating the line and position of a source-code error,
a machine language listing, a file-name map, a data-
name map, a procedure-name map, an external pro-
gram name map, and a cross-reference listing. The
cross-reference listing and maps may be produced in
either alphabetical order or in order of declaration. The
cross-reference listing distinguishes destructive refer-
ences to data from read-only references.
HP COBOL provides support for error diagnostics and
cross-reference information to HP Language-Sensitive
Editor/Source Code Analyzer.
Object modules produced by the compiler can be linked
with other object modules produced by many other lan-
guages, including HP C and HP Fortran. HP COBOL
is supported by the OpenVMS Run-Time Libraries and
the OpenVMS Debugger.
The HP COBOL product includes a COBOL compiler
and the REFORMAT utility. The REFORMAT utility con-
verts source programs from HP terminal format to ANSI-
standard COBOL format and vice versa.
2