call termno(lineid)
TERMNO returns the line id of the current terminal. In batch or a drun, "lineid" will be set to 2 blanks.
The real line number is 2 BCD characters. If the program is in ASCII (the normal case), the 2 BCD characters are translated to ASCII.
Copyright © 1996, Thinkage Ltd.