Or you could reshape a into a table so the normal amend as described in help works, depending on what your real problem looks like. v(<"1(i.4),.i)}4#,:a 0 1 4 2 0 3 0 1 5 2 0 3 0 1 0 2 6 3 7 1 0 2 0 3 On 6/11/07, John Randall <randall at andromeda.rutgers.edu> wrote: > > For some reason I have a blind spot with amend. > > I have the following problem: . . .