(CVAL('OUTPUT'))
Returns the current output value. The default is SCREEN.
If the screen is being used, SCREEN is returned. If the printer is being used, PRINTER will be returned. If a file is being used, the file name is returned. If more than one output is being used at a time, the values are returned in a comma-separated string.