× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Sat, Jan 19, 2019 at 2:24 PM Jon Paris <jon.paris@xxxxxxxxxxxxxx> wrote:


My problems tend to be in the App Dev area. Thins like I need to do X
(create a spreadsheet, send and email, query a web service, whatever) that
is well suited c/o available libraries to being done in
PHP/Python/Node/whatever and want to just invoke it on request from the RPG
or CL that I'm running. Ideally I want to do that in a manner as close to
simply calling a Service Program procedure as I can.


Every method I've seen seems to either write back from QSH to a database
file, or teach RPG to parse and IFS CSV.

It's easy enough, no matter what your use case. If you are RPG'ing, it
ain't a big deal to read in one row of a DB file to get your out parms back
after invoking Python (or Ruby or PHP ...)

One could even write a Python program to generate SQL or DDS, create the
output file, start journaling, and write a CL and Python stub from a spec
file.

E.g. the Python call could be:

genStub( "myprog.py", "MYLIB/MYFILE(MYLAUNCHCL)", "PRDEXECLIB",
"MYDBLIB/MYPARMPF", "/home/JONPARIS/myifslogdir", [char(50, "&FOO", "INOUT,
char(40, "&BAR", "OUT")])

and it would write stub Python code for you, write and compile a CL to the
above spec, generate the PF to hold the parms.

This is pretty close to trivial.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.