I'm playing with QUSRJOBI API format JOBI0600, when retrieving QUSJUIP
16 characters IP address there are some
trailing non printable chars (when IP is i.e. 1.1.1.1) . In my programm I
want to compare retrieved IP with hardcoded IP,
but that is immposible since there is trash on the end of QUSJUIP :(. How
can I get rid of this problem ? Regards.
Grzegorz Goryszewski
p.s.
I'm on V5R1, programm is written in RPG LE.
There may be some info here - Work Management API Attribute
Descriptions
http://publib.boulder.ibm.com/iseries/v5r2/ic2924/info/apis/WMAttrDesc.htm
There are links discussing conversion of IP addresses between text and
binary forms:
http://publib.boulder.ibm.com/iseries/v5r2/ic2924/info/apis/inet_ntop.htm
http://publib.boulder.ibm.com/iseries/v5r2/ic2924/info/apis/inet_pton.htm
--
Karl Hanson
Thank You Karl for useful information. Regards.
Grzegorz Goryszewski