HP 3000 Manuals

OBJECT-COMPUTER Paragraph [ HP COBOL II/XL Reference Manual ] MPE/iX 5.0 Documentation


HP COBOL II/XL Reference Manual

OBJECT-COMPUTER Paragraph 

The OBJECT-COMPUTER paragraph denotes the computer system on which the
object program is executed.  HP COBOL II assumes that all COBOL programs
are executed on an HP computer system.

The only clause in the OBJECT-COMPUTER paragraph that is not treated as a
comment is the PROGRAM COLLATING SEQUENCE clause. 

Syntax 

	       Click here to view figure.
            

Parameters 

computer-name             any combination of alphanumeric characters and
                          hyphens you choose, with the restriction that
                          the first must be alphabetic, and that there
                          must be no blanks between the first and the
                          last characters in the name.

integer-1                 any positive integer.

alphabet-name-1           any name you choose, with the same rules and
                          restrictions as computer-name above.  This name
                          must appear in the alphabet clause of the
                          SPECIAL-NAMES paragraph.

segment-number            any nonnegative integer in the range 1 to 49.

MEMORY-SIZE Clause 

The MEMORY-SIZE clause is an obsolete feature of the 1985 ANSI COBOL
standard.

The MEMORY-SIZE clause specifies the amount of main memory required by
your program.  In HP COBOL II, however, memory is allocated automatically
through the operating system.  Thus, any entry in this clause is treated
as a comment.

PROGRAM COLLATING SEQUENCE Clause 

On an HP computing system, the following operations are performed on the
basis of the ASCII collating sequence:

   *   Determining the truth value of nonnumeric comparisons explicit in
       relation or condition name conditions.

   *   Using nonnumeric sort or merge keys (unless the COLLATING SEQUENCE
       clause of the respective SORT or MERGE statement is specified in
       the PROCEDURE DIVISION, and the alphabet name used in it specifies
       a non-ASCII collating sequence).

The COLLATING SEQUENCE clause can be used in relation with the
SPECIAL-NAMES paragraph to define a different collating sequence to be
used in these operations.

That is, in the SPECIAL-NAMES paragraph, you can relate alphabet-name to
the specific collating sequence desired.

An example of the COLLATING SEQUENCE clause is shown under the
SPECIAL-NAMES paragraph later in this chapter.

The PROGRAM COLLATING SEQUENCE clause applies only to the program in
which it appears.  If you omit this clause, the ASCII collating sequence
is used. 

SEGMENT-LIMIT Clause 

The SEGMENT-LIMIT clause is an obsolete feature of the 1985 ANSI COBOL
standard.

The SEGMENT-LIMIT clause is used to define the number of permanent
segments in a COBOL program.  However, since the concept of a permanent
segment has no meaning on an HP computer system, this clause, if
specified, is treated as a comment.



MPE/iX 5.0 Documentation