Consultor Eletrônico



Kbase P6007: How to write only the characters in a variable to a file
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   25/11/2003
Status: Unverified

GOAL:

How to write only the characters in a variable to a file

GOAL:

PUT writes the length of the character variable not just the characters in the variable

GOAL:

PUT places blank spaces after the characters to make the line the width specified by variable's format

FIX:

Use PUT UNFORMATTED.

Example:

DEFINE VAR a AS CHARACTER FORMAT "x(60)" NO-UNDO.
ASSIGN a="four".
OUTPUT TO myfile.
PUT UNFORMATTED a AT 1 SKIP.
OUTPUT CLOSE.