|
Uh, Phil, What problem are you trying to solve? Maybe I lost the thread here, but I though we were working on why we needed SQL to be free formatted, or, how to work with it in the short term. Meaning, as potential workarounds, how to keep your code free format and stick the sql into a subroutine or subprocedure. Rob Berendt ================== A smart person learns from their mistakes, but a wise person learns from OTHER peoples mistakes. "Phil" <sublime78ska@yah To: <rpg400-l@midrange.com> oo.com> cc: Sent by: Fax to: rpg400-l-admin@mi Subject: RE: Free format vs SQL drange.com 09/06/2001 10:04 AM Please respond to rpg400-l Oops, this: > C*-- > C SQLPrepare begsr > C eval SQLString = 'SELECT * FROM LIB/FILE > WHERE CUSTNO=' + CustNo > C/exec sql > C+ PREPARE @SELECT FROM :@select1 > C/end-exec should be this: > C*-- > C SQLPrepare begsr > C eval SQLString = 'SELECT * FROM LIB/FILE > WHERE CUSTNO=' + CustNo > C/exec sql > C+ PREPARE @SELECT FROM :SQLString > C/end-exec Phil _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l or email: RPG400-L-request@midrange.com 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-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.