|
Buck -
A cursor defines a record set, correct?
To simply, this is what my RPG program does this:
1) Uses 'connect to' to connect to remote database
2) Dynamically prepares an SQL statement to select records from the remote
table
3) Uses the dynamic SQL to open a cursor over the remote table
4) Uses Fetch to fetch a rows from the cursor into a externally-defined data
structure
5) Uses the fields from this data structure to populate a data structure
defined over a local file
6) WRITES a record to the local file.
7) Loops (steps 4-6) until all rows from the cursor are processed
8) Disconnects from the remote database
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.