Updated November 2025
xcall CGIUTL, CGIOP_STDOUT, string, status
Opcode 4, CGIOP_STDOUT writes string to stdout.
Parameters
string (String or unformatted) [out]
The text to be output to the browser. A CRLF is appended to the string, analogous to a PRINT statement. For binary output, such as a data file download to the browser, the string parameter must be type X, in which case no CRLF is appended.
status (Signed Num) [out]
On success, returns the number of bytes output. Negative values represent system error codes.
Comments
Use this in place of PRINT statements to output individual characters or lines to the new web page. In -cgi or -cgifast mode, the output of PRINT statements is sent to the stderr stream rather than stdout. For more information, see the Common Gateway Interface discussion.