COBOL Manual for TNS/E Programs (H06.08+, J06.03+)

Example 1 Code Example Without Ellipsis (...)
WORKING-STORAGE SECTION.
01 MONTH-NAME-TABLE.
05 FILLER PICTURE X(9) VALUE "January".
05 FILLER PICTURE X(9) VALUE "February".
05 FILLER PICTURE X(9) VALUE "March".
05 FILLER PICTURE X(9) VALUE "April".
05 FILLER PICTURE X(9) VALUE "May".
05 FILLER PICTURE X(9) VALUE "June".
05 FILLER PICTURE X(9) VALUE "July".
05 FILLER PICTURE X(9) VALUE "August".
05 FILLER PICTURE X(9) VALUE "September".
05 FILLER PICTURE X(9) VALUE "October".
05 FILLER PICTURE X(9) VALUE "November".
05 FILLER PICTURE X(9) VALUE "December".
01 MONTH-NAMES REDEFINES MONTH-NAME-TABLE.
05 MONTH-NAME OCCURS 12 TIMES PICTURE X(9).
Example 2 Code Example With Ellipsis
WORKING-STORAGE SECTION.
01 MONTH-NAME-TABLE.
05 FILLER PICTURE X(9) VALUE "January".
05 FILLER PICTURE X(9) VALUE "February".
...
05 FILLER PICTURE X(9) VALUE "December".
01 MONTH-NAMES REDEFINES MONTH-NAME-TABLE.
05 MONTH-NAME OCCURS 12 TIMES PICTURE X(9).
In examples with user input, user input is shown in bold type and it is assumed that the user presses
Return after typing the input. For instance, in the example:
ENTER RUN CODE
?123
CODE RECEIVED: 123.00
the system displays ENTER RUN CODE on one line and prompts the user with a question mark
(?)on the next line, the user types 123 and presses Return, and the system displays CODE
RECEIVED: 123.00.
Change Bar Notation
A change bar (as shown to the right of this paragraph) indicates a substantive difference between
this edition of the manual and the preceding edition. Change bars highlight new or revised
information.
Manuals to Which This Manual Refers
Table 2 HP Manuals to Which This Manual Refers
DescriptionManual
Contains information you need about HP C for NonStop
systems if you plan to call HP C routines from HP COBOL.
C/C++ Programmer’s Guide
Describes and explains how to use the COBOL85 and
NMCOBOL compilers.
COBOL Manual for TNS and TNS/R Programs
Describes and explains how to use the Code Coverage
utilities to generate code coverage reports.
Code Coverage Tool Reference Manual
34