作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
cobol编译器错误消息是否还有其他原因:
"TBBNR" was not a uniquely defined name.
The definition to be used could not be determined from the context.
The reference to the name was discarded.
01 TABINHALTBRNR.
05 FILLER PIC X(11) VALUE '77917982 02'.
05 FILLER PIC X(11) VALUE '01000046 09'.
05 FILLER PIC X(11) VALUE '29029435 10'.
05 FILLER PIC X(11) VALUE '39808565 11'.
05 FILLER PIC X(11) VALUE '44826590 12'.
05 FILLER PIC X(11) VALUE '34216875 13'.
05 FILLER PIC X(11) VALUE '87119697 15'.
05 FILLER PIC X(11) VALUE '54301143 16'.
05 FILLER PIC X(11) VALUE '55419988 17'.
05 FILLER PIC X(11) VALUE '72302437 18'.
05 FILLER PIC X(11) VALUE '81116613 21'.
05 FILLER PIC X(11) VALUE '62207726 24'.
05 FILLER PIC X(11) VALUE '01000024 25'.
05 FILLER PIC X(11) VALUE '26109788 28'.
05 FILLER PIC X(11) VALUE '90209055 70'.
05 FILLER PIC X(11) VALUE '98503184 71'.
05 FILLER PIC X(11) VALUE '98094032 80'.
05 FILLER PIC X(11) VALUE '66667777 99'.
01 TABBRNR REDEFINES TABINHALTBRNR.
05 FILLER OCCURS 18.
10 TBBNR PIC X(8).
10 FILLER PIC X(1).
10 TBRNR PIC X(2).
PERFORM VARYING IX FROM 1 BY 1 UNTIL IX > 25
END-PERFORM
IF IX < 26
MOVE TBBNR(IX) TO DSME-BBNREP
END-IF
最佳答案
我尝试编译您显示的代码,并且在编译期间确实出现以下错误。
IGYDS1266-E The name "TBBNR" was used for an item that was not defined as a data-name. References to this name may be
resolved incorrectly.
IGYPS0037-S "TBBNR" was not a uniquely defined name. The definition to be used could not be determined from the context.
The reference to the name was discarded.
IGYDS1266
代码。
Because the field and the PROGRAM-ID have the same
name, the following compile error occurs. In the
program output, the following error message is printed
all on one line.
IGYDS1266-E The name xxxxxxxx was used for an
item that was not defined as a data-name.
References to this name may be resolved
incorrectly.
User response: Follow these steps:
1. Make either of the following changes:
- Modify the value of the Program Name that is specified for the flow in the generation properties
file.
- Rename and Refactor the field in the message.
2. Rerun the Generate Runtime Code wizard.
IDENTIFICATION DIVISION.
PROGRAM-ID. TBBNR.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 TABINHALTBRNR.
05 FILLER PIC X(11) VALUE '77917982 02'.
05 FILLER PIC X(11) VALUE '01000046 09'.
05 FILLER PIC X(11) VALUE '29029435 10'.
05 FILLER PIC X(11) VALUE '39808565 11'.
05 FILLER PIC X(11) VALUE '44826590 12'.
05 FILLER PIC X(11) VALUE '34216875 13'.
05 FILLER PIC X(11) VALUE '87119697 15'.
05 FILLER PIC X(11) VALUE '54301143 16'.
05 FILLER PIC X(11) VALUE '55419988 17'.
05 FILLER PIC X(11) VALUE '72302437 18'.
05 FILLER PIC X(11) VALUE '81116613 21'.
05 FILLER PIC X(11) VALUE '62207726 24'.
05 FILLER PIC X(11) VALUE '01000024 25'.
05 FILLER PIC X(11) VALUE '26109788 28'.
05 FILLER PIC X(11) VALUE '90209055 70'.
05 FILLER PIC X(11) VALUE '98503184 71'.
05 FILLER PIC X(11) VALUE '98094032 80'.
05 FILLER PIC X(11) VALUE '66667777 99'.
01 TABBRNR REDEFINES TABINHALTBRNR.
05 TABLE1 OCCURS 18.
10 TUB PIC X(8).
10 FILLER PIC X(1).
10 TBRNR PIC X(2).
01 WS-HOLD PIC X(11).
01 IX PIC 9(2).
PROCEDURE DIVISION.
PERFORM VARYING IX FROM 1 BY 1 UNTIL IX > 25
END-PERFORM.
IF IX < 26
MOVE TUB(IX) TO WS-HOLD
DISPLAY WS-HOLD
END-IF.
DISPLAY 'HELLO'
STOP RUN.
********************************* TOP OF DATA **********************************
HELLO
******************************** BOTTOM OF DATA ********************************
关于compiler-errors - “Not a uniquely defined name”什么时候只有一个定义?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52292017/
我是一名优秀的程序员,十分优秀!