|
On 2019-04-26 4:54 PM, Spencer Elliott wrote:
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.
Do you maybe have MAX coded too? If you have MAX with a value greater
than 1, then the parameter will start with an 2-byte integer saying how
many were specified.
If my PARM is defined like this:
PARM KWD(MONPATH) TYPE(*CHAR) LEN(128) MIN(1) +
MAX(10) ALWUNPRT(*NO) ALWVAR(*YES) +
VARY(*YES *INT4)
then if I pass "ABCDE" for the parameter, the hex value of the parameter
starts like this:
00010000 0005C1C2 C3C4C540
--
Barbara
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com
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.