james henderson
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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?
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?
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
If XDAN/GETPORT wasn't created before running the program, the message is probably something like "GETPORT in library XDAN not found".
Tom
ASKER
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.
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.
ASKER
never mind ... it's going to a print file. Thanks again for your help.
ASKER