|
Jon, I have tried to return 2 byte integers from RPGIV to CL and it never worked. If the reason a single character field doesn't work is that it is expecting a two byte integer, and two byte integers don't work because... I can't even speculate. I think this incompatibility war started when *LGL values couldn't be passed to RPG programs and has gradually escalated. Microsoft's Java development team could learn a few tricks from these guys. Kidding aside, I wish the CL developers could be a little more aggressive, and work on the interface to ILE procedures. Even if this means a new command, or compile option to maintain compatibility. David Morris >>> <Jon.Paris@halinfo.it> 03/14/99 05:34PM >>> I can't find the reference right now, but I'm fairly certain this happens because RPG passes (and expects) a single char field to be just that. CL on the other hand follows the pattern of C and expects a char field to be passed as a two byte int. Not sure of the best way to specify this in CL, but you could get round the problem probably by having the RPG return a 2 char field. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This is the RPG/400 Discussion Mailing List! To submit a new * * message, send your mail to "RPG400-L@midrange.com". To unsubscribe * * from this list send email to MAJORDOMO@midrange.com and specify * * 'unsubscribe RPG400-L' in the body of your message. Questions should * * be directed to the list owner / operator: david@midrange.com * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
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.