|
I'm working with a service program that may pass back multiple values.
There's a problem when I pass a shorter database field into parameter 3:
I'm getting the full length (30A) of parameter 3 in the database record
buffer; I know this because I get decimal data errors and the program dump
shows blanks where there should be packed numerics.
Dsvv110_a pr 7 opdesc
D 7 const
D
10 const
D 30 options(*omit:*nopass:*varsize)
D 20 0 options(*omit:*nopass)
D 60 options(*omit:*nopass:*varsize)
000091
Dsvv110_a pi
7 opdesc
D q_acct 7 const
D
q_function 10 const
D
q_name 30 options(*omit:*nopass:*varsize)
D q_telephone 20 0
options(*omit:*nopass)
D q_email
60 options(*omit:*nopass:*varsize)
I understand the theory (but apparently not much else) of CEEDOD; when
I've included in in the service program, it tells me that parameter 3 is
15 bytes. But that doesn't seem to do any good.
I can work around this problem by always using fields with lengths
matching the sizes in the parameter list and procedure interface. But
with all the options available, it seems as though there should be a way
to code this so the number of bytes returned agrees with the size of the
input field passed as the parameter. On the other hand, it might be a
fact of life that the size of the returned parameter is what it is and I
have to manage the length/overflow myself.
My brain is fried on this...what am I doing wrong?
-irg
----------------------------------------------------------------------
Find and compare great deals on Broadband access at the MSN High-Speed
Marketplace.
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.