|
-----Original Message----- From: rpg400-l-admin@midrange.com [mailto:rpg400-l-admin@midrange.com]On Behalf Of Hans Boldt >The bottleneck is the RETURN statement. Unfortunately, W-Code >doesn't recognize varying length character as a distinct data type, >since W-Code represents a fairly low-level machine model. As a >result, your procedure PTESTFUNC1 always returns 32002 bytes and >your procedure PTESTFUNC2 always returns 12 bytes, regardless of the >actual meaningful length of the return value. In all other places in >the language, we can deal with just the exact number of bytes we >need to, but RETURN has to copy all of the bytes of the variable. >Bummer, eh? The lesson is to declare your string procedures with >more modest return value lengths. Thanks Hans. Steve _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l or email: RPG400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
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.