Consultor Eletrônico



Kbase 17278: OUTPUT TO and OUTPUT THROUGH "WEB" ( input through )
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
OUTPUT TO and OUTPUT THROUGH "WEB" ( input through )

The following code will output the results to the web page:

OUTPUT TO "WEB".
for each customer where name begins 'l':
display name.
end.

Progress specifically enhanced the OUTPUT TO statement so
that OUTPUT TO "WEB" mimics the behavior of OUTPUT TO "PRINTER".
This however does not mean that an assumption should be made
that "WEB" is an operating system name and will work the same
as PRINTER in any other context. In fact, "WEB" is NOT an
operating system device name.

Based on the above statement, OUTPUT THROUGH wc > "WEB"
will not display the word count (result of unix wc) to a web
page. You can, however, display the output of UNIX wc to a web page
by doing the following:

def var ch as char.
output to outfile.txt.
for each customer where name begins 'l':
display name.
end.

INPUT THROUGH wc outfile.txt.
REPEAT:
IMPORT UNFORMATTED ch.
{&OUT} html-encode(ch) SKIP.
END.


Progress Software Technical Support Note # 17278