What does your colleague's screen show if you add set -vx
before the assignment to NR_OF_REQ..
s. ?
The problem is almost certainly that the call to db2 is not returning a numeric value.
Just remember, set -vx
is your friend (even if it is rather unwieldy when dealing with large and/or nested while/for/if-then-else-fi blocks of code :-) )
IHTH