Is it possible to obtain an IP address of a TN3270 session via a transaction or exit?
If, but only if, the terminal is autoinstalled then it is possible to derive the IP address from the information in the autoinstall program parameter list. The CICS Customization Guide describes how to write "a program to control autoinstall of terminals". The autoinstall program is passed a formatted COMMAREA (described in the Customization Guide) that includes a pointer to the CINIT RU (LOGON data). The format of the CINIT RU is described in the Systems Network Architecture Formats Manual (GA27-3136-19). The CINIT format is complicated but the manual describes how to find the "control vectors". One of these control vectors (the X'64' CV) contains the IP address and port number and, if available, the host name. With luck this URL will lead you to the right section of the SNA Formats Manual: http://publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/d50a5006/184.108.40.206?DT=20000908141935
Dig Deeper on IBM system z and mainframe systems
Related Q&A from Robert Crawford
For better mainframe capacity planning, how do I convert CPU hours to MIPS? And is there a way to calculate the relationship between MIPS and MSUs? Continue Reading
I have two years of experience in mainframe technology, currently working as a mainframe developer. I want to change to Java technology. Continue Reading
I want to replicate DB2 from the mainframe to an AIX box since it's cheaper and the copy can be used for testing. Is this possible? Continue Reading