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



Pass it back as an INT return value.  (Assuming your CL is CLLE).

DCL VAR(&wrkINT    ) TYPE(*CHAR) LEN(     4)
DCL VAR(&RRN       ) TYPE(*DEC ) LEN(  15 0)

CALLPRC PRC(program) PARM(parm1 parm2 . . . parmX)
   RTNVAL(%BIN(&wrkINT))
CHGVAR  VAR(&RRN) VALUE(%BIN(&wrkINT))

&RRN now has a numeric value of the returned integer.

-----Original Message-----
message: 5
date: Thu, 30 Sep 2004 18:16:46 -0400
from: "David C. Shea" <dshea@xxxxxxxxxxxx>
subject: [C400-L] Passing parameter back to calling CL

Alexei:
 
Thanks for your help earlier.  I was able to get the proper RRN.
 
Now I have only one more question.  I need to pass the resulting RRN
back to the calling CL program.  I am passing parameters into the C
program (to get the file name, lib, etc) but now I need to know how to
get the resulting number back to the CL.
 
Thanks.
 


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.