Kbase P34140: Progress batch process fails with error (516)
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  9/23/2006 |
|
Status: Unverified
SYMPTOM(s):
** Attempt to write with no current output destination. (516)
CAUSE:
Batch process fails because is attempting to display data to the screen.
FIX:
Provide an output destination, either with OUTPUT TO or OUTPUT THROUGH, before executing a statement, such as DISPLAY, that would cause output to be written to a file.
Example:
OUTPUT TO report.txt.
FOR EACH customer:
DISPLAY cust-num name address address2 city state country SKIP(2)
WITH 1 COLUMN SIDE-LABELS.
END.
OUTPUT CLOSE.