|
First, I'd like to thank everyone who responded. It's looking like
SYSCOLUMNS is the preferred way to find out field information in most
circumstances; with direct QADBIFLD access, DSPFFD output file, and
QUSLFLD API potentially useful for special situations.
On Wed, Feb 6, 2013 at 11:54 AM, Buck Calabro <kc2hiz@xxxxxxxxx> wrote:
I've asked on the iSeries Python forum, but I don't
expect to hear back. (There are not many of us!)
I'll check out that forum.
Has my near-constant Python cheerleading on these lists finally worn
you down, or were you interested in Python on the i anyway? Are you
new to Python or have you used it on other platforms?
Not being an IBM Python-er (yet) I don't know how to package the output
of an API for Python to consume. My very wild guess is to put the API
in an RPG program that creates a result set of the columns and then
Python traverses the result set. Might be a ridiculous idea, who knows?
That's not a ridiculous guess, though I don't think that's what would
typically be done. iSeries Python comes with a module called os400,
which provides an interface for calling arbitrary i programs directly,
including sending and receiving parameters; in principle, anything in
the QSYS.LIB environment of type *PGM is callable this way. I don't
think it's any more difficult to call an API from iSeries Python than
from RPG.
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.