MV RELEASE
This command releases all resources associated with an API channel.
Command | Parameters |
|---|---|
MainView | MV RELEASE | CHANNEL(channelname) |
The following table describes the parameters:
Parameter | Function | Notes |
|---|---|---|
CHANNEL | token that identifies a previously connected channel | 1- to 32-characters alphanumeric |
Condition codes are listed in the following table:
Value | Description |
|---|---|
0 | The specified channel was successfully released. |
8 | An unspecified error occurred while releasing the channel. |
12 | The specified channel could not be found. |
16 | Syntax error detected or invalid parameters supplied. |
Example
This example shows an EXEC that frees all resources associated with the channel whose token is contained in the variable JOBCHANNEL. It then discards any MainView data returned in the array called JOBDATA.
REXX EXEC example:
'IMFEXEC ARRAY DISC JOBDATA NOSAVE'
CLIST example:
IMFEXEC ARRAY DISC JOBDATA NOSAVE