ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Function check error" and "Record format level identification error

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

  • Function check error" and "Record format level identification error

    Hi

    what is "Function check error" and "Record format level identification error"?



    Regards
    skma

  • #2
    Re: Function check error" and "Record format level identification error

    When a physical file is created it is created with a member and a format.
    The format can actually be named anything in the DDS.

    For this example I have a customer file name ARCUST with a record format of
    ARCUSTR.

    Now when you compile (create) this file the system gives your file and
    format its own id.


    This ID (system generated) is used when programs (PROGRAMA) are compile against this
    file.

    After a program has been created you lets say add another field to your physical
    recreate it or CHGPF the system gives this format a new name.

    When you call PROGRAMA now its been compiled with the old record format system ID and now
    when the files are opened in the CYCLE (your program) the system checks the current format
    name against the format PROGRAMA was compiled with and if they dont match KAPOW!!!!!!
    "Record format level identification error" you can use command DSPPGM or the API located on this site to show the system name of the record format that PROGRAMA was compiled from.
    You could put all this info together and make a nice tool that checks production for level
    check errors.
    Anyway ......

    hope this helps
    Jamie
    Attached Files
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

    Comment


    • #3
      Re: Function check error" and "Record format level identification error

      Originally posted by jamief
      When a physical file is created it is created with a member and a format.
      The format can actually be named anything in the DDS.

      For this example I have a customer file name ARCUST with a record format of
      ARCUSTR.

      Now when you compile (create) this file the system gives your file and
      format its own id.


      This ID (system generated) is used when programs (PROGRAMA) are compile against this
      file.

      After a program has been created you lets say add another field to your physical
      recreate it or CHGPF the system gives this format a new name.

      When you call PROGRAMA now its been compiled with the old record format system ID and now
      when the files are opened in the CYCLE (your program) the system checks the current format
      name against the format PROGRAMA was compiled with and if they dont match KAPOW!!!!!!
      "Record format level identification error" you can use command DSPPGM or the API located on this site to show the system name of the record format that PROGRAMA was compiled from.
      You could put all this info together and make a nice tool that checks production for level
      check errors.
      Anyway ......

      hope this helps
      Jamie

      Thanks a lot !!!!!!!!! Could u plz explain about the functuion check error?

      Comment


      • #4
        Re: Function check error" and "Record format level identification error

        Function check is generic......anything that generates a CPF message
        Examples would be attempting to divide by *zeros...Character data in a decimal field.
        File doesnt exist...etc


        Jamie


        WRKMSGF QCPFMSG
        Attached Files
        All my answers were extracted from the "Big Dummy's Guide to the As400"
        and I take no responsibility for any of them.

        www.code400.com

        Comment


        • #5
          Re: Function check error" and "Record format level identification error

          Thank you very much ................ i got my answer..........

          Comment

          Working...
          X