Kbase 31440: Error 4132 when outputting large text string
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
Solution ID: P1440
SYMPTOM(s):
Outputting character string but gets error 4132
** Invalid character unit value <value>, Changed to 320. (4132)
Outputting a character string of over 600 characters
CAUSE:
The code included a DISPLAY in the OUTPUT. The DISPLAY creates a frame with a default maximum width of 320 characters
FIX:
Avoid using the DISPLAY in the output
eg.
DEF VAR mychar AS CHARACTER FORMAT "x(321)".
mychar = FILL('*', 321).
DEFINE STREAM mystream.
OUTPUT STREAM mystream TO file1.txt.
PUT STREAM mystream mychar.
OUTPUT CLOSE.