COBOL Manual for TNS and TNS/R Programs
About This Manual
HP COBOL Manual for TNS and TNS/R Programs—522555-006
lxx
Example Conventions
Example Conventions
In examples, a modified ellipsis (...) indicates an omission. The code in Example i can
be abbreviated as shown in Example ii.
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.
Example i. 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 ii. 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).