On Fri, Sep 25, 2020 at 1:44 PM Jon Paris <jon.paris@xxxxxxxxxxxxxx> wrote:
But then if you need to process the data in an RPG program you've not only got to learn Python but the bridgework too.
That's a valid point. I don't want to be dismissive of the bridgework,
but people shouldn't be scared of it either. Writing to physical files
from Python just takes some rudimentary SQL. Writing to IFS stream
files is even easier. So if you just want to dump the JSON you
received from Python into a stream file or CLOB (or other database
character field) which you then pick up with RPG and process in the
usual RPG ways, that's really a very short bridge to build. You can
get that far without even really "learning Python". Just read some
examples online, or ask me here. (Well, use the open source list to
reduce David Gibb's frustration.)
And if you *do* really learn Python, then you are most of the way
toward skipping the RPG program altogether, unless it's a display
program.
P.S. It is equally simple with PHP and probably node.js too - but they also present the same problems.
I only mentioned Node.js as a "peer" to Python because those two are
made available directly from IBM. PHP is definitely comparable, but
for now, it's still a little bit (and I say that without sarcasm, it's
really not that much) harder to install than the ones from IBM.
Definitely, for anyone who already has some familiarity with any one
of those three, a great choice is to simply go with that one.
John Y.
As an Amazon Associate we earn from qualifying purchases.