Coder Social home page Coder Social logo

Comments (8)

ranga543 avatar ranga543 commented on July 20, 2024

@kadler any idea ?

from python-itoolkit.

kadler avatar kadler commented on July 20, 2024

The error indicates that the XML returned from XMLSERVICE could not be parsed. What does itool.xml_out() show?, eg.

itool.call(itransport)
print(itool.xml_out())

from python-itoolkit.

ranga543 avatar ranga543 commented on July 20, 2024

@kadler No, luck I tried that as well it's giving following output

<?xml version="1.0" ?><xmlservice>
<error>*BADPARSE</error>
<error><![CDATA[ ?xml version='1.0'? xmlservice /sh /xmlservice ]]></error>
</xmlservice>

from python-itoolkit.

kadler avatar kadler commented on July 20, 2024

Could be running in to this problem: https://github.com/IBM/python-itoolkit#ilibcall-and-64-bit-support

You can try installing SI70667 or SI70668.

from python-itoolkit.

ranga543 avatar ranga543 commented on July 20, 2024

@kadler after installing SI70667 PTF we are getting following error

sh: syntax error at line 1 : `(' unexpected
<?xml version="1.0" ?><xmlservice><sh error="on" var="aspgroup_cmd">
</sh>
</xmlservice>

from python-itoolkit.

kadler avatar kadler commented on July 20, 2024

Oh, right. The way iCmd5250 is programmed, it doesn't support passing parameters...

from python-itoolkit.

ranga543 avatar ranga543 commented on July 20, 2024

@kadler I tried without parameters and it's returning

from itoolkit import *
from itoolkit.transport import DirectTransport
from itoolkit.lib.ilibcall import *

# modify iToolKit not include row node
itransport = DirectTransport()
#itransport = iLibCall()
itool = iToolKit()
itool.add(iCmd5250('aspgroup_cmd', 'SETASPGRP TEST', {'error': 'on'}))
itool.call(itransport)
cmd_out = itool.xml_out()
print (cmd_out)
<?xml version="1.0" ?><xmlservice><sh error="on" var="aspgroup_cmd">
</sh>
</xmlservice>

from python-itoolkit.

kadler avatar kadler commented on July 20, 2024

Calling SETASPGRP will never work as expected with iCmd5250 as this is merely a wrapper around iSh, calling /QOpenSys/usr/bin/system to execute the command. This will cause a new job to start, set the ASP group, then exit.

The issue related to quoting and passing arguments has been fixed and will be in version 1.7 when it gets released.

from python-itoolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.