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



Hi John,

My line of comments/questions was concerned about Python-to-RPG
communication at a high level. I do understand the os400.Program
implementation of calling RPG is different than XMLSERVICE.

Thanks for the links.

Aaron Bartell

On Tue, Oct 7, 2014 at 4:10 PM, John Yeung <gallium.arsenide@xxxxxxxxx>
wrote:

On Tue, Oct 7, 2014 at 4:02 PM, Aaron Bartell <aaronbartell@xxxxxxxxx>
wrote:
Instead I was hoping a community effort could be started to create a
Python
equivalent to the Ruby gem IBM developed. Now that I know something has
already been developed I am wondering if you could provide a link to it
so
I can further review?

Well, I'm certainly glad to put aside any competition among languages.
But I am still getting the strong sense that one or both of us is not
understanding the other.

It sounds to me like the Ruby gem you're talking about is the Ruby
client for XMLSERVICE. If that's the case, then no, there is no
existing Python equivalent.

The facility that I mentioned, os400.Program, is bundled with
iSeriesPython (so effectively part of its standard library). It's
implemented in ILE C and very specific to iSeriesPython. It really is
just a thin wrapper over the operating system's call mechanism (it's
almost exactly equivalent to RPG's CALL opcode). Once you start
talking about servers or services, you are in a completely different
league.

But you want a link for review, so

http://www.iseriespython.com/app/ispMain.py/Start?job=os400page
http://sourceforge.net/projects/iseriespython/files/Source/2.7/

Note that the documentation on the Web is quite sparse and quite out
of date. It doesn't mention things such as the 'b' type for "raw
binary strings" (not converted to and from UTF-8) or 'p' for pointer.

os400.Program is ultimately the foundation for api2.py, which is a
package for working with IBM i system APIs using iSeriesPython:

https://bitbucket.org/buzzh/api2

(Disclaimer: I'm a major contributor to api2.py.)

John Y.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



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.