I have a PF with one field say ID. With the help of using CHGPF command I added one more field say NAME. However when I am using the new field in the RPGLE Program it is showing the following error :
Expression contains an operand that is not defined.
Since the error is NOT *RNF7030 The name or indicator is not defined; your new field is OK.
Can you show us the actual instruction and error code for you problem?
We don't yet know if RNF7030 is thrown. Usually, the reason for a RNF7503 'Expression contains an operand that is not defined.' error is because an additional RNF7030.
.
However, we don't yet know any message IDs at all since the question only showed some text. We also don't know where the text was shown nor when. The question says that the "Program" is showing the error, but that text is usually shown by the compiler rather than by a user program.
.
More actual detail is needed. We don't know why the program should know about any new field yet; we weren't shown the CHGPF command nor the result of it. It might not have succeeded or made the change in a different library or the program uses a LF or... ?
.
Tom
Discuss This Question: 2  Replies