Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

QUSRJOBI format JOBI0600 IP address problem

208 views
Skip to first unread message

Grzegorz Goryszewski

unread,
Nov 26, 2002, 5:39:46 AM11/26/02
to
Hello.

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.


Karl Hanson

unread,
Nov 26, 2002, 7:06:21 PM11/26/02
to
Grzegorz Goryszewski wrote:
>
> Hello.
>
> 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.
>

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

Grzegorz Goryszewski

unread,
Nov 27, 2002, 1:34:40 PM11/27/02
to

Użytkownik "Karl Hanson" <kcha...@youess.ibm.com> napisał w wiadomości
news:3DE40C7D...@youess.ibm.com...

Thank You Karl for useful information. Regards.

Grzegorz Goryszewski


0 new messages