It is just defining the parm as a VARCHAR with the first 4 bytes the actual length passed to the CPP.

As a parmtype Command String can be longer than 10000 chars, the 4 bytes are required for such parms.

Kind regards,

Carel Teijgeler


Op 29-4-2019 om 17:35 schreef dlclark@xxxxxxxxxxxxxxxx:
"MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> wrote on 04/26/2019
04:54:18 PM:
Hi,
I have a Command that is Calling a C program where one of the parameters
contains a variable parameter (see below). I have examined the input
(argv[n]) field in my program and it appears that 2 integers preceded
the
data. The first appears to be some type of offset and the second is the
length of the entered data. I only expected the second integer.

Does anyone have any idea what the first is used for? It does not
contain
the defined parameter length or the offset from the beginning of the
argv[]
list.

PARM KWD(MONPATH) TYPE(*CHAR) LEN(128) MIN(1) ALWUNPRT(*NO) +
ALWVAR(*YES) VARY(*YES *INT4)

Are you saying there are two 4-byte integers on the beginning? If
so, I've never seen that before. When you figure it out, I'd like to hear
the explanation for it. Thanks.


Sincerely,

Dave Clark


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.