Oops my bad ;-)
Try the following (RENAME and DROP will do the trick).
MATCH FILES /FILE='file1.sav' /rename info=@ / TABLE * / by code / drop @.
-------
Context:
data list free /Code Info.
begin data
1 1
1 1
2 1
2 1
3 1
3 1
4 1
4 1
5 2
5 2
6 1
6 1
end data.
save outfile 'file1.sav'.
list.
*Another one with the following cases and variables :.
data list free /Code Info.
begin data
1 1
2 2
3 3
4 1
5 1
6 2
end data.
list.
MATCH files /FILE='file1.sav' /rename info=@ / TABLE * / by code / drop @.
list.
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"