ProvideX V8.20 > Language Reference > 4. System Variables
574
UNT System Variable
         Lowest Available Local Channel
Numeric System Variable
Contents
Integer, lowest channel/file number not open.
Description
The UNT system variable contains the lowest available channel/file number.
See Also
ENABLE Directive, p.109,
PREFIX Directive, p.247.
Example
0010 LET CHAN_NUM=UNT
0020 OPEN (CHAN_NUM)"FILENAME"
0030 print CHAN_NUM
->?
1
Note: Some older Business Basics opened the printer on Channel (1). If you are
dealing with such applications in legacy code, try using HFN instead of UNT. (See HFN
Highest Available Local Channel, p.560.)
WHO System Variable
     Current UserID
String System Variable
Contents
String, current User ID.
Description
This system variable contains the current UserID. On systems without user
registration, it returns the value of the environment variable USER or the Network
UserID. The UID and WHO variables are identical.
Example
0010 ! START_UP
0020 OPEN (1)"MYCONFIG"
0030 READ (1,KEY=WHO,ERR=0050)X$
0040 SETFID X$
0050 CLOSE (1)
->?WHO
SMITHJ