× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



>Stephane,

>>Shouldn't IPAddr be 878 892 rather than 877 891?  I suspect you may have
an
>>unintended leading byte from the network protocol address.

>Exact.

>Offset  Type  Field
>877  36D  CHAR(15)  Internet Protocol (IP) internet address ...

>But note that the API documentation is programming language neutral, and
uses
>generic terms which RPG programmers sometimes misinterpret.  The classic
example
>is coding a BINARY(4) field as 4B 0 in RPG which creates a 4 digit binary
field
>instead of a 4 byte binary field (ie, it should be coded as 10I 0).

>Likewise, "offset" is sometimes misunderstood.  An offset is how many bytes
you
>skip over (or offset) into the structure to the start of the field.  For
the
>first field you don't skip over any bytes, so the offset is zero.  Hence
offsets
>are zero-based, whereas RPG data structures are one-based.


Yes,
You are right completely.
In all api doc offset start from 0 not from 1 (as i saw)
I know it edge give some confusion :)


>Thus an offset of 877 and a length of 15 equates to a RPG field positions
878
>through 892.

That's the point.


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.