RPGIV @ Work

A unique site for RPG and System i Lovers


Hi, this site will provide all what you need in System i and RPG developments.

My Name is Chamara Withanachchi, System i Expert and RPG Developer. And in the field for last 11 years.

I hope you will find lot of valuable information from this site

Call RPG Subprocedures from CL Print E-mail
User Rating: / 0
Written by Chamara   

Programmers can call RPG Subprocedures from a CL program using Call Procedure (CALLPRC) command. But you need to keep following in mind

Pass the parameters by reference, not by value.
Use only character and packed decimal data types.
In the CL module, define one-byte character parameters as two-byte variables. Use the first byte only in your CL code.

callprc prc(RtvCustomer) parm(&pcomp &pcust) rtnval(&cname)
callprc prc(CloseCustomers) rtnval(&status)

User Comments

Please login or register to add comments

<Previous   Next>