|
On Tue, 27 Nov 2018 at 16:46, <dlclark@xxxxxxxxxxxxxxxx> wrote:CL/LE
I do this, too, and it works for me. What you have to do in
youis to build in the 2-byte binary length of the varying length string
3)are passing to RPG/LE. For example:
DCL VAR(&VARSTR) TYPE(*CHAR) LEN(82)
DCL VAR(&VARLEN) TYPE(*UINT) LEN(2) STG(*DEFINED) DEFVAR(&VARSTR 1)
DCL VAR(&VARDATA) TYPE(*CHAR) LEN(80) STG(*DEFINED) DEFVAR(&VARSTR
to
Good to know.
I considered that but wasn't really sure if I thought it was a good idea
suggest.
.
Do you just set your varlen to the maximum or do you use something like
%Scan to try to determine what the blank trimmed length is?
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.