Kbase P82765: Error (120) with OUTPUT TO TERMINAL when running session in batch mode
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/17/2004 |
|
Status: Unverified
SYMPTOM(s):
Error (120) occurs when executing the OUTPUT TO TERMINAL statement
** There is no terminal. (120)
Running a program in batch mode
The same program can be executed just fine in foreground mode
CAUSE:
An OUTPUT TO TERMINAL or INPUT FROM TERMINAL statement was encountered while in batch mode, when there is no terminal defined
FIX:
Use the Progress {&BATCH-MODE} built-in preprocessor with an &IF statement to exclude the commands that are not needed when running the program in batch mode. e.g.:
&IF "{&BATCH-MODE}" = "NO":U &THEN
OUTPUT TO TERMINAL.
DISPLAY "Display some data here".
OUTPUT CLOSE.
&ENDIF