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 thread ...


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.