I'm try example on
http://python-itoolkit.readthedocs.io/en/latest/examples.html

with python3 (i remove "import config" , module not exist )

-------------------------------------------------------------------------------------
from itoolkit import *

itool = iToolKit()
itool.add(iCmd5250('dspsyssts', 'dspsyssts'))

# xmlservice
itool.call(itransport)

# output
dspsyssts = itool.dict_out('dspsyssts')
if 'error' in dspsyssts:
print (dspsyssts['error'])
exit()
else:
print (dspsyssts['dspsyssts'])
------------------------------------------------------------------------------------

don't work output is :

{'error': '*NODATA', 'dspsyssts': {'error': {...}}}



Massimo Fantin

This thread ...


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

This mailing list archive is Copyright 1997-2020 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].