System Variables
CHN Channels Open
Numeric System Variable
 
Contents Numeric string, current open channels.
 
Description This system variable contains a listing of all currently open channels. The value returned is a string of numeric two-byte values. The CHN variable indicates channel values below 65000.
 
Examples To obtain the hex values, use the HTA( ) function.
 
->?HTA(CHN)
0000001E
 
In the above example, DEC($0000$)=0(i.e., the console) and DEC($001E$)=30
(the open file's channel).