HP 3000 Manuals

Restrictions on Program Flow [ COBOL/HP-UX Language Reference for the Series 700 and 800 ] MPE/iX 5.0 Documentation


COBOL/HP-UX Language Reference for the Series 700 and 800

Restrictions on Program Flow 

When segmentation is used, the following restrictions are placed on the
ALTER, PERFORM, MERGE and SORT statements.

The ALTER Statement 

A GO TO statement in a section whose segment-number is greater than or
equal to 50 must not be referred to by an ALTER statement in a section
with a different segment-number.

All other uses of the ALTER statement are valid and performed even if the
GO TO to which the ALTER refers is in a fixed overlayable segment.

The PERFORM Statement 

A PERFORM statement that appears in a section that is not in an
independent segment can have within its range, in addition to any
declarative sections whose execution is caused within that range, only
one of the following:

   *   Sections and/or paragraphs wholly contained in one or more
       non-independent segments.

   *   Sections and/or paragraphs wholly contained in a single
       independent segment.

A PERFORM statement that appears in an independent segment can have
within its range, in addition to any declarative sections whose execution
is caused within that range, only one of the following:

   *   Sections and/or paragraphs wholly contained in one or more
       non-independent segments.

   *   Sections and/or paragraphs wholly contained in the same
       independent segment as that PERFORM statement.

The MERGE Statement 

If the MERGE statement appears in a section that is not in an independent
segment, then any output procedure referenced by that MERGE statement
must appear:

   *   Totally within non-independent segments, or

   *   Wholly contained in a single independent segment.

If a MERGE statement appears in an independent segment, then any output
procedure referenced by that MERGE statement must be contained:

   *   Totally within non-independent segments, or

   *   Wholly within the same independent segment as that MERGE
       statement.

The SORT Statement 

If a SORT statement appears in a section that is not an independent
segment, then any input procedures or output procedures referenced by
that SORT statement must appear:

   *   Totally within non-independent segments, or

   *   Wholly contained in a single independent segment.

If a SORT statement appears in an independent segment, then any input
procedures or output procedures referenced by that SORT statement must be
contained:

   *   Totally within non-independent segments, or

   *   Wholly within the same independent segment as that SORT statement.



MPE/iX 5.0 Documentation