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



What OS release are you running?

On Tue, Oct 11, 2011 at 11:36 AM, Kurt Anderson <
kurt.anderson@xxxxxxxxxxxxxx> wrote:

I have a procedure that returns a 1A value and is called by a CL. The CL's
variable is defined as *CHAR and LEN(1). The procedure prototype does not
have ExtProc(*CL). So, why is the program working? I've debugged it and
saw that it is getting the correct value.

I went in and changed the variable in CL to be 2 bytes, per a number of
postings I found on the web as a workaround, and instead of getting 'junk'
in the 2nd position of the CL variable, I get it in the first. Which seems
to be the opposite of what the various sites say to do.
One site example:
http://www.itjungle.com/mgo/mgo011003-story01.html

So now I'm left wondering, is ExtProc(*CL) no longer required for 1-byte
return variables on procedures that will be called by CL in IBM i 7.1? If
so, very cool. If not, I'm baffled.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.