|
Hello all,
Does anyone see anything wrong with this statement?
c/exec sql
c+ DECLARE c1 CURSOR FOR
c+ SELECT a.ordno, a.ordlv, a.ordtyp, a.rdate, a.adate, a.ordtot
c+ FROM Oeordh a JOIN Orhlact b
c+ ON a.ordno = b.ordno AND a.ordlv = b.ordlv
C+ WHERE b.rmvdate = 0 AND a.cusno = cusno
c/end-exec
c/exec sql
c+ open c1
c/end-exec
The pre-compiler tells me that the cursor is not declared.
I've tried it as a prepared statement as well.
OS/400 V4R5 ILE RPG
Thanks,
Mark
Mark Walter
Sr. Programmer/Analyst
Hanover Wire Cloth a div of CCX, Inc.
mwalter@hanoverwire.com
http://www.hanoverwire.com
717.637.3795 Ext.3040
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.