Consultor Eletrônico



Kbase P1440: Error 4132 when outputting large text string
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   26/05/2010
Status: Verified

SYMPTOM(s):

4GL/ABL: Error (4132) outputting character string or field greater than 320 characters wide

** Invalid character unit value <value>, Changed to 320. (4132)

** Invalid character unit value 500 , Changed to 320. (4132)

Outputting a character string of 500 characters

FACT(s) (Environment):

All Supported Operating Systems
Progress/OpenEdge Product Family
Progress 9.x
OpenEdge 10.x

CAUSE:

The code includes a DISPLAY statement in the OUTPUT. The DISPLAY statement 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.