|
Hi Pete, it's release V5R3 where host variables must be unique in a source member. In release V5R4 host variables need not to be unique, but if you use the same host variable in several procedures, these host variables must be identical, i.e. localItemNo must always be defined as 15A or 7P0. If host variables are defined with the same data type but different length, you'll get an error, but only level 20 (as far as I remember). You either have to change the name of one of the host variable or compile your program with the generation level 21. In release there is an other pitfall. An SET OPTION-Statement must be unique and preceeding all other SQL-Statements in the source code. Before release V5R4 this was neither checked nor an error returned. Birgitta -----Original Message----- From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx Sent: Wednesday, November 22, 2006 14:55 To: Midrange Systems Technical Discussion Subject: Re: V5R4 RPG and SQL You weren't trying to compile to a previous release were you? And, by the way, the imbedded sql part of RPG is developed in Rochester by the database team (hence "precompiler") and the rest is developed in Toronto. I'd like to hear more, but it probably should go to the RPG list and I've been so busy I am several emails behind. Rob Berendt
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.