Use REDIRECT() to send TRACE or SAY output to a stack instead of to the ISERVE log. The recorded information may be retrieved later using standard stack-manipulating functions and commands.
The REDIRECT() function has this syntax:
stack = REDIRECT({TRACE|SAY},[stack])
The REDIRECT() function takes these arguments:
Redirect TRACE output.
Redirect SAY output.
Stack number to receive the redirected output. To terminate redirection of the TRACE or SAY output, code this argument as OFF.
Default: The current value is returned but not changed.
The REDIRECT() function produces these return codes:
ARG n MISSING OR INVALID
Example
x = redirect('trace',5) /* Trace output is written on
stack 5 */
x = redirect('say','off') /* Redirection of SAY output is
terminated.*/
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |