Link to home
Start Free TrialLog in
Avatar of james henderson
james hendersonFlag for United States of America

asked on

using the QtocLstNetCnn api in cl

Can anyone give me an example of calling the QtocLstNetCnn API from CL and how to read the output?  I'm trying to get information on telnet sessions.  Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Member_2_276102
Member_2_276102

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of james henderson

ASKER

Thanks for the excellent write up.  I'm going to try running your example, and I'' see what happens.
I compiled as per your instructions but get this error when I try to call the pgm:
msg id: CEE9901 statement 0000000138, instruction X'0000'

Statement   0000000138 is the CALLPRC instruction ... I don't know what the x'0000' value is.  

I did change the following two lines ... I changed the program name and library values:
             dcl        &usrspc      *char     10     value( 'GETPORT')
             dcl        &usrspclib   *char     10     value( 'XDAN' )
 Any ideas?
Avatar of Member_2_276102
Member_2_276102

CEE9901 isn't _the_ message; it's only a message that tells you a message was sent. In order to see _the_ message, look at messages just before CEE9901 in the joblog.

If XDAN/GETPORT wasn't created before running the program, the message is probably something like "GETPORT in library XDAN not found".

Tom
Tom,
Yeah, my problem was not having created the user space, so I create the user space first then call your procedure, and it works like a champ!  I have one last question:  How can I output the returned list to a print file?  Thanks for all your help and patience.
never mind ... it's going to a print file.  Thanks again for your help.