Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Format of the REXX socket function and return values z/OS Communications Server: IP Sockets Application Programming Interface Guide and Reference SC27-3660-00 |
|
You can issue socket commands in REXX by calling the built-in socket function. FormatParameters
Returned valueThe socket function returns a space-delimited string. If the REXX socket library can issue the socket command, the return value consists of the REXX TCP/IP error number value, the return code, and any additional socket information. If the REXX socket library cannot process the socket command, the return value consists of a REXX socket library error value and information about what caused the error. Tip: For
an error condition, the REXX socket library returns both the numeric
and text versions of the error, for example, 2009 ESOCKETNOTDEFINED
Socket not defined.
See Socket call error return codes for additional information about the numeric error codes that are returned by this command. ExampleConsider the following code sample:
where:
When a new connection is available, the ACCEPT command
returns the following string:
where
0 is the return code, and 45 is the file descriptor of the new connection. |
Copyright IBM Corporation 1990, 2014
|