Comments (3)
Take this with a grain of salt because I can't actually use the system debugger on the XMLSERVICE right now, but FWIW I think the service program calls either need a SETALLEN before the prototyped call or use SETALLEN & CALLX instead of the prototype call.
Also it might be possible to use CALLPGMV with a service program function but I wasn't sure based on the IBM documentation for it. If you can do that it would be very similar to the call *PGM stuff instead of doing something totally different.
Update: It turns out that the service program is being called via the PASE functions, not the ILE functions as I originally thought. It's ultimately using Qp2CallPase(). The RPG documentation at https://www.ibm.com/docs/en/i/7.3?topic=functions-parms-return-number-parameters indicates that %PARMS needs an operational descriptor to be passed but I haven't found anything yet that indicates how one might do that from "another ILE language". Even though the XMLSERVICE is actually RPG that caveat applies because it's not calling things the normal way a regular RPG program would.
from xmlservice.
Does anybody know if we converted the Qp2CallPase() calls to use _ILECALLX would it be possible to somehow generate the operational descriptor that RPG needs to support %PARMS? Ie maybe if the argument list is prepared with build_ILEarglist() first?
from xmlservice.
With the latest comment on the NodeJS iToolkit issue it seems like this is not possible to fix without IBM i Idea 3080 (https://ibm-power-systems.ideas.ibm.com/ideas/IBMI-I-3080) being implemented.
from xmlservice.
Related Issues (20)
- ftpcompile.sh missed from migration HOT 5
- DATA tags in output have wrong converted chars after migrated to new build environment HOT 8
- Is there any example to show how to call stored procedures? HOT 18
- XMLSTOREDP service program not exporting RUNASCII HOT 1
- xmlcgi only supports password length less/equal to 10 HOT 1
- Multiple result sets HOT 2
- Add support for Free Format parameter declaration HOT 3
- Changing 'commit' option in XML SQL statement does NOT work HOT 7
- Itoolkit's iPgm - Library setup HOT 17
- How to deal with DBCS chars at IBMi db2 HOT 1
- How to fix IPLUG15M in QXMLSERV type *N not found. error HOT 2
- Stored procedures truncate result HOT 3
- How to use pure xml to call PGM/CMDwith Chinese Chars (937)? HOT 5
- Drop calling /usr/lib/start32 to bring PASE up
- spawn call overwrites instead of ORs flags HOT 1
- [feature] job name will always be XMLSERVICE HOT 2
- Qp0sDisableSignals ??? HOT 5
- Calls to programs or service program functions with mode="opm" do not handle *OMIT parameters properly HOT 1
- Fix copyright headers on source files
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 xmlservice.