|
The Question is:
I have a process that is stopping after not finding a file for a copy.
I tryed
$On error then continue
But if a second file is not found, the line works nomore.
How can I make the "Then Continue" Permanent thru the entire procedure?
Help!
The Answer is :
Typically, use SET NOON and SET ON commands around the DCL that
can generate an error.
SET NOON and ON commands must be (re)invoked for each procedure
level -- this includes for each file and for each subroutine
within a file.
Obviously, a DCL subroutine can be used for the COPY command(s),
and thus SET NOON can be enabled only for the commands that can
potentially fail. Or obviously, use f$search to determine if the
file(s) are present and thus avoid the error you are seeing.
(Though it is still possible for the DCL COPY to fail for other
reasons -- such as network errors.)
Please see the OpenVMS User's Guide for basic DCL error handling
information and for general information on creating DCL procedures.
|