我有一个正在运行的测试脚本会产生一些错误,如下所示,我预计这些错误。无论如何我可以阻止它们显示在屏幕上吗?我用
$ write sys$output
显示是否存在预期错误。
我试着用
$ DEFINE SYS$ERROR ERROR.LOG
但这随后将我的整个错误输出日志更改为此,如果这是处理它的正确方法,我可以在脚本末尾以某种方式取消设置吗?
[错误示例]
%DCL-E-OPENIN, error opening TEST$DISK:[AAA]NOTTHERE.TXT; as input
-RMS-E-FNF, file not found
%DCL-E-OPENIN, error opening TEST$DISK:[AAA]NOTTHERE.TXT; as input
-RMS-E-FNF, file not found
%DCL-W-UNDFIL, file has not been opened by DCL - check logical name