|
Antonio,program.
In short, yes.
In embedded RPG SQL, when you prefix a variable with : it means that
variable belongs to the RPG program. For example, if I say:
EXEC SQL
Select 1 from my table
Where Number = :Number;
The First "Number" belongs to the SQL table. The second one to your
list
HTH,
Luis Rodriguez
IBM Certified Systems Expert ? eServer i5 iSeries
On Sun, Feb 7, 2010 at 6:21 AM, Antonio Fernandez-Vicenti <
afvaiv@xxxxxxxxxxxxxx> wrote:
Birgitta Hauser escribió:
To avoid this problem enhance the statement as follows:Sorry if I'm asking a stupid question, but... are the variables:
Clear IsFound;
Exec SQL Select 1 Into :iSFound
From MyFile
Where ....
Fetch first row only;
- "IsFound" being cleared by "Clear"
- and "*:*iSFound" (prefixed with "colon :"...) in the Select
referring to the same variable?
Sorry if I'm short in SQL knowledge...
--
Antonio Fernandez-Vicenti
afvaiv@xxxxxxxxxxxxxx
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
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.