Previous Topic: &ZSOCHADR

Next Topic: &ZSOCID


&ZSOCHNM

Returns the host name of the host referenced by some requests (for example, &SOCKET GETHOSTBYNAME).

&ZSOCHNM is set by the host lookup function GETHOSTBYNAME and GETHOSTBYADDR.

It is also updated by &SOCKET calls with the name associated with the last referenced socket.

Example: &ZSOCHNM

&SOCKET GETHOSTBYNAME HOSTNAME=&HOST 
&WRITE DATA=HOST &HOST KNOWN AS &ZSOCHNM