The following is the EZACICAL call format for COBOL:
>>-CALL ‘EZACICAL’ USING TOKEN COMMAND--parm1, parm2, ...--ERRNO RETCODE.-><
- TOKEN
- A 16-character field with the value 'TCPIPIUCVSTREAMS'
- COMMAND
- A halfword binary value from 1 to 32, identifying the
socket call.
- parmn
- The parameters particular to each socket call. For example,
BIND, described in COBOL call for BIND, has two such
parameters: S (socket), which is a halfword binary value,
and NAME, which is a structure specifying a port name.
- ERRNO
- There is an error number in this field if the RETCODE is negative.
This field is used in most, but not all, of the calls. It corresponds
to the global errno variable in C.
- RETCODE
- A fullword binary variable containing the code returned by the
EZACICAL call. This value corresponds to the normal return value of
a C function.