Consultor Eletrônico



Kbase P22411: Output to stream shows more information than expected.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   1/26/2005
Status: Unverified

SYMPTOM(s):

Output to stream shows more information than expected.

CAUSE:

DEF STREAM A.
DEF STREAM B.

OUTPUT STREAM A TO "C:\temp\a".
OUTPUT STREAM B TO "C:\temp\b".

DISPLAY STREAM A "A".
OUTPUT STREAM A CLOSE.


DISPLAY STREAM b.
OUTPUT STREAM B CLOSE.

CAUSE:

This is cause by the default behavior of the display statement. It is displaying the information to the default form.

FIX:

DEF STREAM A.
DEF STREAM B.

OUTPUT STREAM A TO "C:\temp\a".
OUTPUT STREAM B TO "C:\temp\b".
PUT STREAM A UNFORMATTED "A".
OUTPUT STREAM A CLOSE.


PUT STREAM B UNFORMATTED "B".
OUTPUT STREAM B CLOSE.

The PUT statement will not place the information in the screen buffer and thus will not appear in the opposite stream.