Identifier is ambiguous .

120 pts.
Tags:
AS 400
RPGLE
Hi I have a simple program that moves value 'a' into a variable AB. the length of AB is 1. during debug I eval the value of AB.Instead of showing the value of AB it gives me the following notification : """" Identifier is ambiguous """". But when i am changing the variable name from AB.like AC. then its working fine. So i wanna know is it due to the same name of Variable and program object?? following is the code (Its in debug mode): Display Module Source Program: AB Library: QTEMP Module: AB 1 *MODULE ENTRY AND MAIN PROCEDURE ENTRY 2 1 C MOVE 'a' AB 3 2 C SETON LR 4 *MAIN PROCEDURE EXIT

Software/Hardware used:
RPGLE,AS 400,

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 6  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • philpl1jb
    This cannot be the entire program.  This would not compile.  There is no definition shown for field AB (D spec, I spec, field width on C spec or as a field of an external file declared in an F-Spec..  1 *MODULE ENTRY AND MAIN PROCEDURE ENTRY2 1 C MOVE ’a’ AB3 2 C SETON LR
    51,355 pointsBadges:
    report
  • philpl1jb
    Read more carefully, Phil.  I would suppose that having a variable with the same name as a program might muck-up debug. 
    51,355 pointsBadges:
    report
  • TomLiotta
    I'm not clear on how reading more carefully would help. It still doesn't seem to be a complete program. Granted, an I-spec from an external file or similar might not show up; but the F-spec should. It would be far better to see actual source rather than a debug view. (Then we'd need to ensure that what is being debugged is also what was compiled.) Also, we need to know what the current statement is in debug. Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    But a variable named the same as the program/module does seem to behave that way in debug.  Interesting.  Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    Apparently, there are only two alternatives. Rename the program/module or rename the variable. This IBM document mentions the issue -- Debugger Issues CPF7E56 - Identifier is Ambiguous. Tom
    125,585 pointsBadges:
    report
  • ITKBHARAT
    Thank you Philp and Tom. The  link Debugger Issues CPF7E56 – Identifier is Ambiguous. was reallay helpfull to understand the behavior of the scenario..    
    120 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following