|
Charles, 1) Thanks, lots to learn. If I understand what I think I know, the speed difference between dynamic and static SQL is in the path analysis and package preparation steps, the SQL statement runs at the same speed. For the enhancements I plan to start with, that time penalty is not a big issue. If we end up doing a significant rewrite on the system, I'll deal with it later after I understand more. 2) Nawww, we don't use WDSCi/SEU. Notepad works just fine... JK
-----Original Message----- From: rpg400-l-bounces+johnking=pdq.net@xxxxxxxxxxxx [mailto:rpg400-l- bounces+johnking=pdq.net@xxxxxxxxxxxx] On Behalf Of Wilt, Charles Sent: Friday, September 08, 2006 2:09 PM To: RPG programming on the AS400 / iSeries Subject: RE: ISTKT & DYNSQL vs. 5722ST1 SQL Development Kit One thing to note is that performance of DYNSQL is going to be worse than with actual embedded SQL. Particularly when it come to static SQL statements, ie. the fields returned and files access don't change each time the program is run. So do you have to code with WDSCi/SEU to? Charles Wilt -- iSeries Systems Administrator / Developer Mitsubishi Electric Automotive America ph: 513-573-4343 fax: 513-398-1121-----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of JK Sent: Friday, September 08, 2006 2:12 PM To: rpg400-l@xxxxxxxxxxxx Subject: ISTKT & DYNSQL vs. 5722ST1 SQL Development Kit All, Our iSeries shop is small, with an even smaller software budget so purchasing the IBM SQL precompiler (5722ST1) simply isn't going to happen. We've muddled by with OPNQRYF and ASC's "Sequel" product (which is a great tool) but without the ability to embed 'Select' statements into RPG or CL, we've not been able to take full advantage of SQL. Until yesterday, that is, when I girded my loins, plunged into that scary SourceForge site, imported the "iSeries toolkit" and stayed up past midnight playing with DYNSQL. It appears that DYNSQL will enable me to build dynamic SQL statements, declare cursors and fetch results directly into RPG and CL. What more could a guy want? DYNSQL requires a slightly different syntax than IBM's precompiler, but those are just technical details, right? So I'd like to: 1) say thanks to David Morris and his compadres for making this available, and 2) ask whether anyone else has used DYNSQL instead of IBM's offering and what differences I should be aware of (other than syntax) between the two products. The goal is not to chuck all the native I/O, but to enhance it where the payback is greatest. Count(*) and Sum(amount) now become easy, as well as dynamic sorting and filtering of subfiles. Many thanks, JK
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.