Data editing > Changing the contents of a variable > Deleting codes from a column
 
Deleting codes from a column
Quick reference
To delete selected codes from a column, type:
delete cn1'codes1' [, cn2'codes2' ... ]
More information
The delete statement is the opposite of emit in that it deletes codes from a column leaving the remainder intact. Its format is:
delete cn'p'
Suppose you have:
+----1----+
5
6
8
9
and you write delete c110'5'. The result is:
+----1----+
6
8
9
More than one deletion can be effected with the same delete statement as long as each column is separated by a comma.
delete c110'5', c(t1+3)'6', c179'56'
See also
Changing the contents of a variable