Would be easier with the socket connection data so we could test, but this line is bad either way:

set %abctest.last %abctest {

the set command does not allow for the opening of brackets