|
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Chandra Krieg
Sent: Friday, October 19, 2007 1:12 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Embedded SQL compile error
I'm working on a project for a client and the following code
gives me a compile error on the fields of IN_CASENO, IN_RECNO
and IN_RECITM which are all pgm described fields.
C/EXEC SQL
C+ DECLARE csp2csr CURSOR FOR
C+ SELECT ABABCD, ABACCD, ABADCD, ABAJCD, ABAICD
C+ FROM CSPICASE2
C+ WHERE (SUBSTR(ABABCD,6,13) >= :in_caseNo) AND
C+ ABACCD >= :in_recno) AND
C+ (SUBSTR(ABADCD,1,2) >= :in_recitm)
C+ ORDER BY ABABCD, ABACCD, ABADCD
C/END-EXEC
I can't figure out why. The error is that these fields are
not defined or unusable.
Any suggestions?
Thanks
ICTChandra
--
This is the RPG programming on the AS400 / iSeries (RPG400-L)
mailing list To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
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.