|
Dave Reiher/prairiefarms wrote: > > I am trying something a little odd, but I think it should work. > I am calling a CL program from an RPG II program, passing parameters. > Ultimately I want to call an ILE program to do something with the > parameters. Changing it all to ILE is not an option right now, I have to > use the original RPG II. > > I am not getting the parameters the way I want them, they are truncated in > most cases. I have tried DEC and CHAR types, but can not get exactly what > I pass. Does anyone have any suggestions? > RPG II only supports zoned decimal variables. I think the easiest hoop to jump through is to create an ILE RPG wrapper for your CL program. The ILE RPG program would receive the zoned parameter, convert it to packed, and pass the packed value to the CL, copying the packed value back to the zoned parameter if it was an output parameter from the CL. The wrapper could be written in RPG III too, although each zoned parameter would have to be defined as a data structure with a zoned subfield.
As an Amazon Associate we earn from qualifying purchases.
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.