Comments (9)
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()
from python-itoolkit.
New XMLSERVICE bug is IBM/xmlservice#17
from python-itoolkit.
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()
, not iDb2Call()
from python-itoolkit.
@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.idb2call
still has a class named iDB2Call
. It's probably reasonable to make an alias there, like
iDb2Call = iDB2Call
or vice versa.
from python-itoolkit.
@jkyeung That would make sense to do, if all the i*Call
transports weren't going to be deprecated in the next release anyway.
from python-itoolkit.
Hello Kevin
this is my code :
from itoolkit import *
from itoolkit.db2.idb2call import *
itransport = iDB2Call()
itool = iToolKit()
itool.add(iCmd('addlib1', 'addlible SICGA00F55'))
itool.add(iCmd('addlib2', 'addlible $$CLI00F55'))
itool.add(iCmd('addlib3', 'addlible $$CLI00O'))
itool.add(iCmd('callpgm', "CALL PGM($$CLI00O/OC005) PARM(X'001F' X'0056217F' ' ' )"))
itool.call(itransport)
data = itool.dict_out()
print(data)
this is the result :
4.3:zeta@~/pyWork> python3 rpg1.py
{'addlib1': {'success': '+++ success addlible SICGA00F55'}, 'addlib2': {'success': '+++ success addlible $$CLI00F55'}, 'addlib3': {'success': '+++ success addlible $$CLI00O'}, 'callpgm': {'success': "+++ success CALL PGM($$CLI00O/OC005) PARM(X'001F' X'0056217F' ' ' )"}}
all i see is success , however the call
CALL PGM($$CLI00O/OC005) PARM(X'001F' X'0056217F' ' ' )
does not call the programm OC005.
How can i debug it ?
Also i tried this approach to call my program :
itool.add(
iPgm('my_key','OC005')
.addParm(iData('gcnusr','1','2p0'))
.addParm(iData('gcnuec','56217','6p0'))
.addParm(iData('$status','1a',' '))
)
but always returns error!!!
4.3:zeta@~/pyWork> python3 rpg1.py
{'addlib1': {'success': '+++ success addlible SICGA00F55'}, 'addlib2': {'success': '+++ success addlible $$CLI00F55'}, 'addlib3': {'success': '+++ success addlible $$CLI00O'}, 'my_key': {'error': '*** error OC005', 'version': 'XML Toolkit 1.9.9.3', 'xmlhint': 'p(44) 2p0 ', 'xmlhint1': 'p(69) <data type="1" var="gcnusr"', 'xmlhint2': 'p(69) 2p0', 'xmlhint3': 'p(69) 0000000000000000', 'xmlhint4': 'p(44) <parm io="both" var="p1"', 'xmlhint5': 'p(44) 2p0 ', 'xmlhint6': '<parm io="both"', 'xmlhint7': 'p(44) <parm io="both" var="p1"', 'xmlhint8': 'p(44) 2p0 ', 'jobipc': '*na', 'jobipcskey': 'FFFFFFFF', 'jobname': 'QSQSRVR', 'jobuser': 'QUSER', 'jobnbr': '167411', 'curuser': 'RAMOS', 'ccsid': '1140', 'dftccsid': '1140', 'paseccsid': '819', 'syslibl': 'QCIRES QSYS QSYS2 QHLPSYS QUSRSYS UTILIT', 'usrlibl': '$$CLI00O $$CLI00F55 SICGA00F55 QGPL QTEMP QFNTCPL300 QFNTCPL QFNT09'}}
any help ?
Regards
from python-itoolkit.
@ramstein74 Seems like a different issue than this one - please open a separate issue.
from python-itoolkit.
Whew, good thing this was documented. I was banging my head trying to get iLibCall to work today :-)
from python-itoolkit.
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.
from python-itoolkit.
Related Issues (20)
- Drop Python 3.4 Support HOT 4
- _direct.py needs more test coverage
- Add type declarations HOT 17
- Transports need a way to indicate failure HOT 1
- Deprecate the trace functions for standard logging
- Run cl command to create a library in an IASP via DirectTransport on a French system failed HOT 1
- On Japanese or French systems run command via DatabaseTransport fails with ibm_db_dbi::Error HOT 3
- Provide a close() API to close database connections
- PyPI page is outdated HOT 5
- Is there a problem with the Japanese environment in iCmd5250 xml output? HOT 3
- What itoolkit version allows qtemp schema table access using iSqlQuery? HOT 6
- Improve README links on PyPI HOT 3
- RTVJOBA example works only with CCSID=37 HOT 3
- Errors using JayDeBeApi HOT 8
- DatabaseTransport should not close a connection HOT 14
- Stderr handling in SSH Transport can yield wrong results
- Running itool.call ends the program and does nothing HOT 7
- XML Special Character errors/handling HOT 1
- Fix license headers on source files HOT 2
- Error calling Receive DataQ API - QRCVDTAQ HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-itoolkit.