Did you include copy members and is the variable perhaps also defined in a copy member?
Without knowing the whole source and how you compile your module/program it is difficult to tell more.
------------------------------
Birgitta Hauser
Database and Software Engineer
Selfemployed - Modernization-Education-Consulting on IBM i
Kaufering
+49 170 5269964
------------------------------