ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

RPG EVAL Question

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

  • RPG EVAL Question

    Bad Post Title. Really asking about DIVISION

    Trying to track down a "Divide by 0 " error so need to find all types of code that do division, like "DIV" '/' anything else ?

    I have a 142 page dump file, but not sure if there's anything useful in it.
    Last edited by MFisher; November 4, 2022, 09:09 AM.

  • #2
    %REM comes to mind as well as the ones you have listed.

    Comment


    • #3
      No instances of 'REM'. or 'DIV' or '/' character strings in the calc specs
      Strange.

      Comment


      • #4
        Does this message apply to INVC40 , or W3GDOH ?

        Code:
        ILE RPG FORMATTED DUMP                                                  
        Program Status Area:                                                    
        Procedure Name . . . . . . . . . . . . :   INVC40                      
        Program Name . . . . . . . . . . . . . :   INVC40                      
           Library . . . . . . . . . . . . . . :   MYLIBRARY                    
        Module Name. . . . . . . . . . . . . . :   INVC40                      
        Program Status . . . . . . . . . . . . :   00202                        
                     The call to  ended in error (C G D F).                    
        Previous Status  . . . . . . . . . . . :   00000                        
        Statement in Error . . . . . . . . . . :   00003782                    
        RPG Routine  . . . . . . . . . . . . . :   W3GDOH                      
        Number of Parameters . . . . . . . . . :   000                          
        Message Type . . . . . . . . . . . . . :   MCH                          
        Additional Message Info  . . . . . . . :   1211                        
        Message Data . . . . . . . . . . . . . :                                
                     Attempt made to divide by zero for fixed point operation.  
        Status that caused RNX9001 . . . . . . :                                ​

        Comment


        • #5
          I never use RPG dumps - or rather I haven't for years - I go off the job log. But I would have assumed that it was W3GDOH

          But in looking at this: https://www.wisdomjobs.com/e-univers...dump-4736.html - or more specifically the naming conventions used it would appear that INVC40 is more likely.
          Last edited by JonBoy; November 4, 2022, 02:25 PM.

          Comment


          • #6
            What statement is in 3782?

            Statement in Error . . . . . . . . . . : 00003782

            If it is ILE remember that the error could happen in another part and the error caused that
            it passed the called programs. There is a word for it. I don't remember right now ( monday morning
            and coffee level too low )

            Comment


            • #7
              I compiled INVC40 to QTEMP, and the compile listing shows statement 3782 is the call to "W3GDOH", so looks like 3rd party software is causing the problem.

              Comment


              • #8
                Double check what data you are passing into W3GDOH's call parameters

                Comment


                • #9
                  Just curious.

                  Have you found out what caused the error?

                  Comment


                  • #10
                    Originally posted by Peder Udesen View Post
                    Just curious.

                    Have you found out what caused the error?
                    No. The 3rd party tool is to make green screens work through a browser instead, and they inject hundreds of lines of confusing code into RPG programs. I have not tried to track down what it uses for parameters. If it happens again I may look deeper.

                    Comment

                    Working...
                    X