Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

Examples

CDD/Plus CDO ON — VMS CDD+_4.1A

 Specifies an action to be performed if an error of a particular
 severity or worse occurs during the execution of a command procedure.

 ON ─┬─> 
W

A

R

N

I

N

G
──────┬─> 
T

H

E

N
─┬─> 
C

O

N

T

I

N

U

E
─┬──> ├─> 
E

R

R

O

R
────────┤ └─> 
S

T

O

P
─────┘ └─> 
S

E

V

E

R

E

E

R

R

O

R
─┘

Additional information available:

Examples

Examples

 If you want to override the default error handling so that a procedure
 will stop when warnings, errors, or severe errors occur, use the
 following command in your CDO command procedure:

 ON WARNING THEN STOP

 If you specify ON SEVERE_ERROR THEN CONTINUE, the command procedure
 continues executing when a WARNING, ERROR, or SEVERE_ERROR occurs.  In
 the example, a command procedure that attempts to define two fields is
 executed.  The first definition fails because the field is given an
 invalid name.  The procedure continues to execute and defines the
 second field.  The command procedure uses the SET VERIFY command, which
 displays each command in the procedure as it executes:

 CDO> @SEVERE_ERROR.CDO
 ON SEVERE_ERROR THEN CONTINUE
 DEFINE FIELD INVALID NAME FIELD
                               ^
 %CDO-E-KWSYNTAX, syntax error in command line at or near FIELD
 DATATYPE IS TEXT 7.
     ^
 %CDO-E-KWSYNTAX, syntax error in command line at or near DATATYPE
 DEFINE FIELD CORRECT_NAME_FIELD
 DATATYPE IS TEXT 7.

 CDO>

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026