RELEASE
Terminate Task Operation
This directive terminates a task’s operations and reallocates its memory, returning control to the operating system.
Syntax
Section titled “Syntax”RELEASE [task-id |integer]task-id- is the string value that specifies the task ID. This is the default.
integer- is a positive integer in the range of 0 to 255 that specifies the exit status to the user who started Thoroughbred Basic.
Remarks
Section titled “Remarks”Each task is independent and may not release any task except itself and ghost tasks. After the RELEASE directive the task is placed in the last state it occupied prior to entry into Thoroughbred Basic (normally, operating system console mode or login prompt). The first syntax is valid for releasing ghost tasks and this task itself.
If an attempt is made to release a task for which this task does not have control, an ERR=13 results.
The integer option is generally available starting with release level 8.1B2. It returns an exit status value to the shell.
Examples
Section titled “Examples”RELEASEterminates the task issuing the directive and releases memory space allocated to this task.
See also
Section titled “See also”START directive
From the Thoroughbred Basic Language Reference, Volume III: R–Z, version 8.9.1. Open this page in the PDF