I've run into something that's got me stumped.
I'm working on an RPG program that uses SQL cursors to load data into a subfile. Some of the FETCH statements load host variables that are fields defined in the subfile.
The SQL precompiler gives me lots of SLQ0312 errors. (Variable XXXXXX not defined or not usable.) I can understand this, since the precompiler doesn't know anything about the fields that are defined in the display file.
What I don't understand is why it used to compile. I didn't write this program, but I have compiled it many times.
Have any of y'all seen anything like this?
I'm working on an RPG program that uses SQL cursors to load data into a subfile. Some of the FETCH statements load host variables that are fields defined in the subfile.
The SQL precompiler gives me lots of SLQ0312 errors. (Variable XXXXXX not defined or not usable.) I can understand this, since the precompiler doesn't know anything about the fields that are defined in the display file.
What I don't understand is why it used to compile. I didn't write this program, but I have compiled it many times.
Have any of y'all seen anything like this?






Comment