The statement must be defined as a dynamic cursor


El jue., 24 de ene. de 2019 18:09, Booth Martin <booth@xxxxxxxxxxxx>

exec sql prepare Stmt1 from
'select AFIELD from aMachine/aLibrary/aFile'
+ ' where rrn(aFile) = ?';
exec sql execute Stmt1 into :wField using :wSeed;

SQL0104 Token : was not valid. Valid tokens: SQL DESCRIPTOR

What is missing? I am finding nothing that I understand about DESCIPTORs

This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives

Please contact support@xxxxxxxxxxxx for any subscription related

Help support by shopping at with our affiliate

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by 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].