ILSHOWPERFORMOVERLAP

プログラムで重複する PERFORM の範囲が検出されると、警告を生成します。
制限事項:この指令はマネージ COBOL のみでサポートされます。

構文:

>>--.---.-.----.-ILSHOWPERFORMOVERLAP---><
    +-/-+ +-NO-+

パラメータ:

なし。

プロパティ:

省略値: 未設定
段階: 任意
IDE と同等 なし

例:

次の例では、PERFORM 範囲 a thru c、c thru f、およびf [thru f] は互いに重複します。ILSHOWPERFORMOVERLAP を設定することで、2 つの警告が生成されます。その 1 つ、COBCH1663 は最初に影響される範囲の始点と重複する PERFORM 範囲の数を示し、もう 1 つの COBCH1664 は影響される各範囲の始点を示します。

$set ilshowperformoverlap
 ...
 perform a thru c.
 perform c thru f.
 perform f.
 goback.
                               *> errors are displayed as follows:
 a section.
 display "Running section a.". *> COBCH1663E Overlapping perform range: 3 entries
                               *> COBCH1664E    perform range: a thru c
 b section.
 display "Running section b.".
 c section.                    *> COBCH1664E    perform range: c thru f
 display "Running section c.".
 d section.
 display "Running section d.".
 e section.
 display "Running section e.".
 f section.                    *> COBCH1664E    perform range: f thru f
 display "Running section f.".