Specifying the I/O Exit in the COPY Statement
Include the IOEXIT keyword on the COPY statement to indicate that an I/O exit is used. The IOEXIT format on the COPY statement follows.
Statement | Parameters |
---|---|
COPY | FROM (
IOEXIT= exitname | (exitname[,parameter,...]) ) |
TO (
IOEXIT= exitname | (exitname[,parameter,...]) ) |
The subparameters of the IOEXIT parameter of the COPY statement are:
Parameter | Description |
---|---|
exitname | Name of the user-written program to receive control for I/O-related requests. |
parameter | Parameter or list of parameters passed to the exit. Their format is the same format as those parameters which you can specify on the RUN TASK statement. |
The IOEXIT keyword is valid in either the FROM or TO areas of the COPY statement. This capability enables you to specify a different user-written I/O exit on each side as illustrated in following example.
|
If you specify an exit, it can ignore the values of other parameters in the COPY statement (the DCB information). This issue is beyond the control of IBM® Connect:Direct®. For information on using the I/O exit through the COPY statement, see the Connect:Direct Process Language help.