Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Previous sectionNext section


Performs no operation, used in a clause.




The NULL statement takes no arguments.


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
   ELSE GOTO write_error
PRINT "All done"
Copy code to clipboard

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

See Also