COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
Cause
Warning: One of:
• An ALTER statement in the nondeclarative portion of the Procedure Division references a
paragraph-name or section-name defined in a declarative procedure.
• An ALTER statement in a declarative procedure references a paragraph-name or section-name
defined in another declarative procedure.
• An ALTER statement modifies a GO TO statement so that its execution will transfer control
from one declarative procedure to another declarative procedure.
Error: One of:
• An ALTER statement in a declarative procedure references a paragraph-name or section-name
defined in the nondeclarative portion of the Procedure Division.
• An ALTER statement in a nondebugging declarative procedure references a paragraph-name
or section-name defined in a debugging declarative procedure.
• An ALTER statement modifies a GO TO statement so that its execution will transfer control
into or out of the Declaratives Portion the Procedure Division.
• An ALTER statement modifies a GO TO statement so that its execution will transfer control
between a debugging declarative procedure and a nondebugging declarative procedure.
387 (Warning or Error)
Improper GO TO scope
Cause
Warning: A GO TO statement transfers control from one declarative procedure to another
declarative procedure.
Error: One of:
• A GO TO statement transfers control between the declarative and nondeclarative portions
of the Procedure Division.
• A GO TO statement transfers control between a debugging declarative procedure and a
nondebugging declarative procedure.
388 (Warning or Error)
Improper PERFORM scope
Cause
Warning: A PERFORM statement specifies a range that includes two references. One identifies
a paragraph-name or section-name defined in a declarative procedure. The other identifies a
paragraph-name or section-name defined in another declarative procedure. It is recommended
that both references identify items in the same declarative procedure.
Error: One of:
• A PERFORM statement in an independent segment references a paragraph-name or
section-name defined in another independent segment.
• A PERFORM statement in a declarative procedure references a paragraph-name or
section-name defined in the nondeclarative portion of the Procedure Division.
• A PERFORM statement references a paragraph-name or section-name defined in a debugging
declarative procedure, but the statement itself is not in a debugging declarative procedure.
• When the range specified in a PERFORM statement includes two references, they must
identify compatible paragraph-names or section-names. If one is defined in the Declaratives
Portion of the Procedure Division, the other must also be defined in the Declaratives Portion.
1162 Compiler Diagnostic Messages










