×
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.
hi Simon,
My confusion stems from the fact that if C is instructed to not widen
then why does RPG need *CNOWIDEN when that's RPG's default behaviour?
What is RPG doing that requires it to be *instructed* to behave
differently?
There's a difference specifically in the way 1-byte return values are
passed. When ILE was implemented, C and CL passed them one way, and RPG
and Cobol chose to pass them differently. (I think C and CL pass them
as an integer, and RPG and Cobol pass them as character strings... and
there's some sort of a difference in the mechanism somewhere deep under
the covers.)
Unfortunately, I don't know exactly what that difference is.
however, I believe *CNOWIDEN tells RPG to use the same convention that C
(and CL) use for 1 character return values.
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.