UNT (variable)
Unused Channel
This numeric system variable returns the lowest-numbered channel that is currently not being used (not open).
Syntax
Section titled “Syntax”UNTRemarks
Section titled “Remarks”This system variable is generally available starting with release level 8.0.
The lowest possible value returned by UNT is 1 since the task, either normal or ghost task, always has channel 0 in use (open).
Examples
Section titled “Examples”LET CH = UNTreturns the lowest available channel.
See also
Section titled “See also”OCH system variable
UNT string function
From the Thoroughbred Basic Language Reference, Volume III: R–Z, version 8.9.1. Open this page in the PDF