Skip to content

UNT (variable)

Unused Channel

This numeric system variable returns the lowest-numbered channel that is currently not being used (not open).

UNT

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).

LET CH = UNT

returns the lowest available channel.

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