You are moving a text field to the comp value, which won't work out well. Any group field is considered a text value. So effectively, you are moving a PIC X(8) to the S9(08) comp field.
Try redefining the group field to be a 9(8)"
This works!!
Thank you everyone for your help!
Hello,
I am trying to perform arithmetical calculations on a COMP variable and, so far, have been unsuccessful. I have also tried to perform the required calculations on a normal variable and then MOVE the result to a COMP variable, again, without success.
Could somebody tell me if this is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.