Previous Topic: &ZSNAMID

Next Topic: &ZSOCERRN


&ZSOCCID

Returns the socket ID used by the interface; for example, when using IBM TCP/IP, the internal socket number (a small numeric value).

&ZSOCCID is used to identify an NCL socket or display produced by TCP/IP (for example, the NETSTAT command).

Example: &ZSOCCID

&SOCKET CONNECT HOSTNAME=&HOST PORT=&PORT 
&IF &RETCODE EQ 0 &THEN +
    &WRITE DATA=SOCKET &ZSOCID CONNECTED USING INTERFACE ID &ZSOCCID