ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error

    Hi, I am getting these errors:

    *RNF7503 30 049400 Expression contains an operand that is not defined.
    *RNF7503 30 049700 Expression contains an operand that is not defined.
    *RNF7503 30 049800 Expression contains an operand that is not defined.
    *RNF7503 30 050300 Expression contains an operand that is not defined.

    Here is the code in the program.

    0494.00 D1ADD2 = %subst(CLADR2:1:30) ; // ADDRESS - 2
    0495.00 D1ADD3 = CLADR3 ; // ADDRESS - 3
    0496.00 D1ADD4 = %subst(CLCITY:1:18) +
    0497.00 UCase(%subst(CLSTATE:1:2)) ; // City & State
    0498.00 D1PCDE = CLZIPC ; // POST CODE (ADDRESS 5)
    0499.00 D1ADD6 = CLCNTRY ; // ADDRESS - 6
    0500.00 D1SAL = %Subst(CLCSAL:1:10) ; // SALUTATION
    0501.00 D1TTLE = %Subst(CLCTTL:1:30) ; // TITLE
    0502.00 D1NID = CLPID + CLNID ; // NAME IDENTITY
    0503.00 D1PWD = *Blanks ; // PASSWORD
    0504.00 D1LOGERRC = *Zeros ; // INVALID LOG IN ATTEMPT COUNT
    0505.00 D1LSTLOGD = *Loval ; // LAST LOG IN DATE
    0506.00 D1COMP = CLANAM ; // COMPANY

    I've looked and all the fields are defined. Not sure why I am getting this error.

    Any suggestions?

    Thanks,

    DAC

  • #2
    Re: Error

    I figured it out.

    Thanks,

    DAC

    Comment


    • #3
      Re: Error

      Please note that we can't tell a thing about definitions if we can only see statements that try to use the variables; we also need to see the definitions. When you say "all the fields are defined", we already know it's not completely correct because the compiler tells us with the error messages. There might be source statements that are intended to be the definitions, but it's clear that something is contradictory between the C-specs and the D-specs.

      Glad you figured it out though.

      Tom
      Tom

      There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors.

      Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?

      Comment


      • #4
        Re: Error

        Here's a hint for future problems like this: After you run Source - Verify, just double click on an error message and the error will display under the line with the error.
        This assumes you are using Rational Developer or WSDC and not an old text editor like SEU.

        Comment

        Working...
        X