COBOL Manual for TNS and TNS/R Programs
Compiler Diagnostic Messages
HP COBOL Manual for TNS and TNS/R Programs—522555-006
47-77
Message List
388 (Warning or Error) 
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. If one is defined in an independent segment, the other 
must be defined in the same independent segment.
389 (Warning or Error) 
Cause. Warning: An INPUT PROCEDURE or OUTPUT PROCEDURE phrase 
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 a different declarative procedure.
Error: One of:
•
An INPUT PROCEDURE or OUTPUT PROCEDURE phrase of a SORT or 
MERGE statement in an independent segment references a paragraph-name or 
section-name defined in a different independent segment.
•
An INPUT PROCEDURE or OUTPUT PROCEDURE phrase of a SORT or 
MERGE statement specifies a range that includes two references, and they identify 
incompatible paragraph-names or section-names. Either one reference is defined 
in the Declaratives Portion of the Procedure Division and the other is not, or one is 
defined in one independent segment and the other is defined in another 
independent segment.
Improper PERFORM scope
Improper SORT/MERGE scope










