|
The SWSXMIT FunctionRelated Topics
SWSXMIT is a built-in function used to transmit outbound data to Web server clients from REXX-Language event procedures. SWSXMIT may only be used from within WWW event procedures and will return an error if invoked from other event procedure types.
SWSXMIT SyntaxThe SWSXMIT function takes from one to four arguments. The first argument is always required. All other arguments are optional. The invocation format for SWSXMIT is: z = SWSXMIT( arg1 {, arg2 {, arg3 {, arg4 }}} ) The first argument always specifies the data to be be transmitted to the Web server client. A NULL string may be passed as the first argument, or the argument may be omitted entirely by coding a single comma in its place. The second through fourth arguments are selected from the following string constants:
The PURGE operand must not be coded in conjunction with any other arguments.
Return ValuesThe function returns a zero to the calling program if the function completed successfully. A non-zero value indicates that the outbound communications session has failed.
ExamplesThe following call will buffer the HTML data for outbound transmission. A linefeed character will be added following the data and the data will be translated to ASCII before transmission:
The following call will place the data into the outbound buffer with no additional processing:
The following call will buffer the HTML data for outbound transmission. It will then cause all buffered data to be sent to the client immediately.
The following call will purge all previously buffered data. Data which was flushed prior to this call, will have already been sent to the Web client.
|