|
I am trying to compile an RPG program that contains the sub-error.
procedure shown below and am getting an SQL0314 error saying that
host variable OBATCH is not unique. Originally the variable was
called wBatch which was also defined globally, so despite the v7r2
SQL manual saying that the pre-compiler copes with the different
variable scopes correctly I changed the name to be on the safe side.
However, no matter what I change the name to I always get the SQL0314
I use SQL often in subprocedures. I just did a test where I declared a
If I move the declaration to the mainline code and make the scope
global then the pre-compiler is happy and no error is generated. It
seems to me that if I have to declare the variable globally then I
may as well either use a subroutine instead of a sub-procedure or
change the sub-procedure to use native I/O instead. I have checked
with our technical support guys and they have confirmed that we are
7.2 with cume 115310 and latest group and HIPER PTF's applied.
Any ideas/suggestions would be most welcome.
Thanks
Jonathan
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.