Sometimes it is necessary to know the TCP/IP address of the PC client that runs RDi.
You can use the Retrieve Device Description (QDCRDEVD) API, format DEVD0600 to retrieve the TCP/IP address of a 5250 session in dotted decimal form. Or you can use the WHOAMI command that is shipped with iSphere and which is available as an XML installation package in file QBUILD in the iSphere product library.
Follow these steps to install the WHOAMI command:
ADDLIBLE LIB(ISPHERE) |
CRTBNDRPG PGM(ISPHERE/XMLINST) SRCFILE(ISPHERE/QBUILD) |
CALL PGM(ISPHERE/XMLINST) PARM('WHOAMI' 'QBUILD' 'ISPHERE') |
DLTPGM PGM(ISPHERE/XMLINST) |
The WHOAMI command has no parameters and produces the following output:
User: RADDATZ, System: GFD400, Device: QPADEV0001, IP: 10.214.131.8 |