|
I looked at using the *STRING option but from the documentation it
didn't sound like the correct application.
Nope, that's not it. I still get a zero error number and 'There isno error' text.
null to the end.
Don't the strings need to be null terminated? That's why I added the
They do need to be null terminated, but you can get RPG to do it for
you by coding OPTIONS(*STRING) on the prototype and coding the passed
parameter as a character value rather than a pointer.
Without OPTIONS(*STRING)
temp = %trim(name) + x'00';
proc(%addr(temp));
With OPTIONS(*STRING)
proc(%trim(name));
With OPTIONS(*STRING : *TRIM)
proc(name);
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.