Calling RPG Proc from COBOL ILE

Tags:
COBOL
RPG
This article was very helpful. I have coded and compiled my CBLLE program. Now when I call it, I am getting error RNX0115 'Length of varying length variable is out of range.' Here is my COBOL call statement: CALL PROCEDURE "ENT002_RMVBADCHAR" USING BY VALUE C86D1, GIVING RETURN_VALUE. This is the field definition in working-storage:  01 C86D1 PIC X(42). And here is the subprocedure entry parm: D @String 1000A Varying Value. Can some please offer any suggestions on what I need to change/do to get this to run without error? Thank you.
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • bvining

    The VARYING keyword in the RPG prototype is indicating (by default) that the field will be preceded by a 2-byte integer reflecting the actual length of the field. The COBOL program needs to provide this 2-byte value (right now all you have is the field with no length indication.


    Bruce Vining

    7,070 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: