For V3R2+ Simple iSeries Port Scanner
This program will perform a portscan of the given host name or IP address.
I complied on a V4R5 system with a target release of V3R2. I have tested on V4R5 thru V5R4.
It compiled the first time. I only tweaked a few things, mostly to do what I wanted.
I added starting port and a timeout value, in case the host is unreachable.
The port names that are returned are what you have defined in the WRKSRVTBLE command.