×
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.
On 10/30/2014 1:26 PM, rob@xxxxxxxxx wrote:
Can I write a subprocedure in CL? One that accepts multiple input
parameters and returns one output parameter? If so, how?
I'm on 7.2 and I can't create a procedure in CL, but I can sort of
emulate that idea via a CMD object with RTNVAL().
Once, long ago, I had some complex code in CL (I know, red flag already)
that I wanted to reuse in some RPG programs as a function (if
ifs_folder_count(/dir/dir/dir) > 1), but I didn't want to rewrite it so
I wrapped it inside an RPG subprocedure that did the CALL/PARM thing to
the CL and returned the results via RETURN.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.