|
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. Thus an offset of 877 and a length of 15 equates to a RPG field positions 878 through 892. Doug
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.