Daniel Fuentes
Daniel Fuentes

Reputation: 3

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. 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.

Someone has a clue if i can make a call from a Java Class to a RPG Function.

I've done make a call to a RPG or CL from a Java Class but not to a Function.

Upvotes: 0

Views: 261

Answers (1)

Charles
Charles

Reputation: 23783

You can't call a function in a *MODULE object.

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.

Upvotes: 2

Related Questions