The BIND_CHANNEL call
BIND_CHANNEL binds a channel to the task. This call must be issued before the first program in a task.
BIND_CHANNEL
DFHPGCHX [CALL,]
[CLEAR,]
[IN,
FUNCTION(BIND_CHANNEL),
CHANNEL_TOKEN(name4)]
[OUT,
RESPONSE(name1 | *),
REASON(name1 | *)]
This command is threadsafe.
- CHANNEL_TOKEN(name4)
- Specifies the name of a location that contains a 4-byte token representing the channel that is to be bound to the task.
RESPONSE and REASON values for BIND_CHANNEL
| RESPONSE | REASON |
|---|---|
| OK | None |
| EXCEPTION | INVALID_TOKEN |
| DISASTER | None |
| INVALID | INVALID_LINK_LEVEL |
| KERNERROR | None |
| PURGED | None |