Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.

For information on migrating to InterSystems IRIS, see Why Migrate to InterSystems IRIS?

NULL

Performs no operation, used in a clause.

Synopsis

NULL

Arguments

The NULL statement takes no arguments.

Description

The NULL statement performs no operation. It is used to indicate in an optional clause that no operation is to be performed when that clause is executed. It can be used within a THEN clause, an ELSE clause, or an ON ERROR clause. It is most commonly used in a THEN clause. For example:

WRITE mydata TO filevar,recID
   THEN NULL
   ELSE GOTO write_error
PRINT "All done"

NULL transfers control to the statement immediately following the THEN...ELSE construction.

See Also

Feedback