ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

CPF4131 after recompiling.

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

  • CPF4131 after recompiling.

    Hi!

    I added these two fields to a DSPF and then compiled (first DSPF, then PGM)
    Code:
    0009.30      A            PAG            2D  0O  8  7                                               
    0009.40      A            PAGLET         2D  0O  9  7
    The fields are defined in the PGM with
    Code:
    Z-ADD     1      I     2 0
    Compiled with no errors.
    Calling the program the CPF4131 is displayed on opening WRKSTN file. I know this has to do with the format level ID, so I made a DSPFD for all involved files and a DSPPGMRF for the program. All are enclosed (AFAIS the IDs do match).

    Enclosures are in Italian, thus a short explanation:
    - SUFFMODIF is the program
    - SUFFMODFM is the DSPF
    - WWWSUFFIX is the PF
    - WWWSUFFI01 is the LF

    It I do not define PAG and PAGLET in both, DSPF and PGM, all is OK.

    What's wrong?

    TIA
    Arnaldo
    Attached Files

  • #2
    Re: CPF4131 after recompiling.

    You are getting a level check error. This is not the same as a definition mismatch, how you define the variables does not affect a level check.

    A level check is caused by running the program against a file that has a different record format level ID from the one you compiled the program against. So, you either have two copies of this file on your system and you are compiling against a different one than you are running it against, or you haven't recompiled the RPG code since you changed the file.

    Use the WRKOBJ command to see where you have copies of this file and this program. Make sure all copies have been updated.

    Comment


    • #3
      Re: CPF4131 after recompiling.

      On a side note, try and come to 2014. That Z-add died with the dinos.
      Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

      Comment


      • #4
        Re: CPF4131 after recompiling.

        Thanks for replies.

        It was a menu option calling the wrong (i.e. old) program

        Arnaldo

        Comment

        Working...
        X