user3604233
user3604233

Reputation: 1

AS400 - Passing and calling and RPGLE from a non-ILE Cobol program

A non-ILE Cobol program is calling and passing parameters to an RPGLE program. The Cobol passes a non-sorted area to RPG, RPG sorts that area with SORTA and returns the sorting area back to the Cobol.

  1. Passing parameters between non-ILE Cobol to RPGLE - Is that possible ?
  2. What are the constrains (size of parameters, number of parameters) ?
  3. Any compilation restrictions ?
  4. Any other tips are welcome :)

RPGLE code:

RPGLE CODE

Upvotes: 0

Views: 386

Answers (1)

Barbara Morris
Barbara Morris

Reputation: 3674

Yes, it's possible to call an ILE RPG program from any COBOL program.

You can pass up to 255 parameters on a program call.

There are no compilation restrictions. Compile both programs normally.

Upvotes: 2

Related Questions