This function sends TRACE or SAY output to a stack instead of to the ISERVE log. The recorded information can be retrieved later using standard stack-manipulating functions and commands.
stack = REDIRECT({TRACE|SAY},[stack])
Parameters
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.
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 © 2014 CA Technologies.
All rights reserved.
|
|