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)

&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

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.

This thread ...

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

This mailing list archive is Copyright 1997-2019 by 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].