Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRISOpens in a new window, see the InterSystems IRIS Migration Guide and Migrating to InterSystems IRIS, both available on the WRC Distributions pageOpens in a new window (login required).

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>
Copy code to clipboard
FeedbackOpens in a new window