× 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.



A small example of a call with no parms.

import config
from itoolkit import *

database = "*LOCAL"
user = "xxxx"
password = "xxxxx"

itool = iToolKit()
itool.add(iPgm('TestDate','TESTDATE'))

# xmlservice
itool.call(config.itransport)

programout = itool.dict_out('TestDate')
print(programout)


config.py in the same directory has:

from itoolkit.lib.ilibcall import *
itransport = iLibCall()




Kevin Bucknum
Senior Programmer Analyst
MEDDATA/MEDTRON
Tel: 985-893-2550

-----Original Message-----
From: OpenSource [mailto:opensource-bounces@xxxxxxxxxxxx] On Behalf
Of John Yeung
Sent: Thursday, May 31, 2018 1:23 AM
To: IBMi Open Source Roundtable
Subject: [IBMiOSS] Calling RPG programs from IBM's Python (5733-OPS)

Does anyone have any experience doing this? Until we convert our
system to
7.3 (at which point hopefully I can use the new RPM-based
installation), I am
pretty much clueless about IBM's Python and the facilities for
interacting with
the IBM i from it.

If you have any knowledge to share, I encourage you to do so at

https://stackoverflow.com/questions/50576341/how-to-call-an-rpg-
program-from-python

Note that the question as posed doesn't seem to require reading any
RPG
output parameters. It's just fire-and-forget.

If you aren't registered on Stack Overflow and don't want to be, or
for
whatever reason don't want to post there, then of course just reply
here. I
or someone else can get the information onto Stack Overflow.

John Y.
--
This is the IBMi Open Source Roundtable (OpenSource) mailing list To
post a
message email: OpenSource@xxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit: https://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxx Before posting, please take
a
moment to review the archives at
https://archive.midrange.com/opensource.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.