简体   繁体   English

如何从Java类调用AS / 400函数

[英]How to call a AS/400 function from a Java Class

I need to call from a Java Class a RPG Function, i found a bunch of examples that show how to do that, but the thing is that my function when is compile is a MODULE not a PGM. 我需要从Java类中调用RPG函数,我发现了一堆示例来演示如何执行该操作,但问题是,编译时我的函数是MODULE而不是PGM。 And when i try to call it show me a message that the object doesn't exist. 当我尝试调用它时,会显示一条消息,提示该对象不存在。

I execute the command WRKOBJ *ALL/FUNCTION_NAME there is the object. 我执行命令WRKOBJ * ALL / FUNCTION_NAME存在对象。

Someone has a clue if i can make a call from a Java Class to a RPG Function. 有人知道我是否可以从Java类向RPG函数进行调用。

I've done make a call to a RPG or CL from a Java Class but not to a Function. 我已经从Java类调用了RPG或CL,但没有调用Function。

You can't call a function in a *MODULE object. 您不能在* MODULE对象中调用函数。

A module is an intermediate object that is not executable. 模块是不可执行的中间对象。 You have to bind the module into a *PGM or *SRVPGM object which are executable. 您必须将模块绑定到可执行的* PGM或* SRVPGM对象中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM