× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




I have an RPGLE procedure that I need to call from a CLLE program. The issue is the length (and type) of the parameters in the RPG procedure - they are all VARCHAR and range in size from 50 to 1024.

For now, I have it "working" by defining the CL variables as the "maximum size".

For example:
The first parameter of the RPG procedure is VARCHAR(1024), so I defined the CL variable &PARM1 as TYPE(*CHAR) LEN(1024).

CHGVAR VAR(&PARM1) VALUE('about this much data')
CALLPRC PRC('my_rpgProc') PARM((&PARM1) (&PARM2)...)

This seems to work (for now)... but I have this little voice in my head telling me it could be a problem down the road.

I despise CL for this very reason.

Greg

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.