|
Jon Paris wrote: > > >> These is a IBM Api called CEETREC, it is service program, how do i call > it from java, > > Are you _sure_ you want to do this? It will destroy the AG in which the > Java is running (and I'm not even sure Java runs in a conventional AG) and > if it did the implications for the JVM would be a bit nasty. Sounds like a > good way of doing yourself a very nasty injury. > > That said, if I recall correctly the CEE APIs are called "under the hood" > slightly differently than a regular procedure - and I have no idea how to > define the PCML to do that. > Some of the CEE APIs are true MI builtin functions, but CEETREC isn't one of them. (There are probably other ways to find out which kind it is, but the way I use is to create a module using the CEE function, and see if the function appears in the DSPMOD *IMPORT list - if it appears there, it's not a true MI builtin.) Indeed, you could not call a true MI builtin function using PCML, but I think you could probably code the call to CEETREC - the path to the service program is "/QSYS.LIB/QSYS.LIB/QLEAWI.SRVPGM". But I have no idea what would happen if you managed to call it from Java. I think (but I'm not sure) that the ProgramCallDocument call runs in the default activation group, but CEETREC seems to have some function in the default activation group. When I call it from a *CALLER RPG program, it still does the "All call stack entries to the nearest control boundary end unless the resume cursor is moved while handling the terminate-imminent condition." part (cancelling the program, for RPG effectively doing a SETON LR + RETURN), even though it can't end the activation group. So maybe all that would happen would be that the call to CEETREC would end ...
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.