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?

Write (again) and Kill Commands

You may have noticed that we've already used variables to hold data. Use Write without any argument (called an “argumentless Write”) to see the values of all variables. You use Kill to delete a variable, and an argumentless Kill to delete all variables. Kill and argumentless Write are useful when you are debugging a routine.

SAMPLES>set a = 1, b = 2, c = 3, d = 4, e = 5

SAMPLES>write
a=1
b=2
c=3
d=4
e=5
SAMPLES>kill c

SAMPLES>write

a=1
b=2
d=4
e=5
SAMPLES>kill

SAMPLES>write

SAMPLES>
Feedback