Actually,
code:
RedirectOutput ("\\AFNBLFSRV1\INVLOG\@HOSTNAME.CSV") = 1

can be done if one wants to check whether the returncode of REDIRECTOUTPUT equals 0. It's basiclaly comparing two values. The result for this comparison will then printed.

However, Les is right, when he says that one cannot set a function to a value.
_________________________
There are two types of vessels, submarines and targets.