ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Where do I find the exception ID's for ON-ERROR?

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

  • Where do I find the exception ID's for ON-ERROR?

    In a monitor group you can have....

    MONITOR;
    code
    ON-ERROR exception id;
    code
    ON-ERROR exceoption id;
    code
    ENDMON;

    How do I find the valid exception id's so I can code appropriately?

  • #2
    Expand sub-topics under Chapter 5. File and Program Exception/Errors to see 'File Status Codes' and 'Program Status Codes'.
    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


    • #3
      You might find this copy file useful. Change the names as you wish but it has most of the codes. http://www.partner400.com/examples/statuscdsf.rpgle

      Any added in V7 will probably not be there - if you add them please send the updates. The link for the fixed form version is http://www.partner400.com/examples/statuscds.rpgle

      Comment


      • #4
        Is it just the status field in the program status DS?

        Comment


        • #5
          Originally posted by jtaylor___ View Post
          Is it just the status field in the program status DS?
          Yes.

          Comment


          • #6
            Originally posted by JonBoy View Post

            Yes.
            Thanks, great /copybook BTW

            Comment


            • #7
              Originally posted by jtaylor___ View Post

              Thanks, great /copybook BTW
              You're welcome. I really must clean up the web page so it is easier to find.

              Comment


              • #8
                Thank you for your assistance! I appreciate it greatly.

                Comment

                Working...
                X