Hi Mike
I made the change to the EOF no difference.
Basically the "go" part is a sybase command to execute whatever you have queried etc
i.e. you connect to the database then put some sql and type go, this will then return data back.
So i.e. some example data for the sql part
select a.keyid,a.id_le,a.currency,wambalance,summarybal
into #COMP1
from #TACBAL a,
where a.keyid *= b.keyid
go