Repository navigation
iLibCall fails on 64-bt Python versions #17
Description
Activity
Original comment by Kevin Adler (Bitbucket: kadler, GitHub: kadler).
This is an upstream XMLSERVICE bug: https://bitbucket.org/inext/xmlservice-rpg/issues/17/calling-xmlservice-from-a-64-bit-pase-job
For now, the workaround is to use the database transport:
#!python # Instead of this from itoolkit.lib.ilibcall import * itransport = iLibCall() # Do this from itoolkit.db2.idb2call import * itransport = iDB2Call()- addedbugSomething isn't workingSomething isn't workingand removed
on Dec 21, 2018 New XMLSERVICE bug is IBM/xmlservice#17
Original comment by Kevin Adler (Bitbucket: kadler, GitHub: kadler).
This is an upstream XMLSERVICE bug: https://bitbucket.org/inext/xmlservice-rpg/issues/17/calling-xmlservice-from-a-64-bit-pase-job
For now, the workaround is to use the database transport:
#!python # Instead of this from itoolkit.lib.ilibcall import * itransport = iLibCall() # Do this from itoolkit.db2.idb2call import * itransport = iDb2Call()@kadler
It should be uppercased B ->itransport = iDB2Call(), notiDb2Call()@kadler
It should be uppercased B ->itransport = iDB2Call(), notiDb2Call()@dmabupt - Ah. Actually, it should be Db2, since that is consistent with IBM's current branding. However, it does look like the actual code in
itoolkit.db2.idb2callstill has a class namediDB2Call. It's probably reasonable to make an alias there, likeiDb2Call = iDB2Callor vice versa.
@jkyeung That would make sense to do, if all the
i*Calltransports weren't going to be deprecated in the next release anyway.@ramstein74 Seems like a different issue than this one - please open a separate issue.
Whew, good thing this was documented. I was banging my head trying to get iLibCall to work today :-)
This is fixed in XMLSERVICE 2.0.1. The necessary PTFs are now documented in here an the code will now attempt to detect this condition and raise an exception with the PTF numbers in the exception message.
Original report by Kevin Adler (Bitbucket: kadler, GitHub: kadler).
All calls to XMLSERVICE through iLibCall fail with
*NODATA. Other transports are unaffected.Example:
Output: