|
Rob, I was responding to Aaron's post about how he likes how java does it. I don't see much of a difference. I put all my embedded sql into subroutines (almost always - there are exceptions). Therefore, using /FREE should have no impact at all (unless you can't EXSR in a /FREE block - I'm still at V4R5). I showed that with the example I posted. IMHO: I don't think the /EXEC SQL directive needs to be allowed within a /FREE directive. What's the difference between: /FREE /ENDFREE /EXEC SQL /END-EXEC and /FREE /EXEC SQL /END-EXEC /ENDFREE If you're already using embedded sql you're more than used to needing an /EXEC SQL block for each sql statement anyway. (Also, I believe not all opcodes can be used within a /FREE block anyway? Not sure.) If some programmers won't use /FREE because they can't nest /EXEC SQL in it then I think they're just looking for an excuse. If /FREE has merit this shouldn't get in the way. Phil > -----Original Message----- > From: rpg400-l-admin@midrange.com [mailto:rpg400-l-admin@midrange.com]On > Behalf Of rob@dekko.com > Sent: Thursday, September 06, 2001 11:51 AM > To: rpg400-l@midrange.com > Subject: RE: Free format vs SQL > > > > 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 > _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
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.