I was talking about the SQL stmt only and not the title. One of these set commands before the export cause the SQL to appear in the output. I have removed them now after seeing your post and the SQL doesn't appear, would you happen to know if it is the set format on that caused the problem.
Thanks.
.SET FORMAT ON;
.SET WIDTH 160;
.SET PAGELENGTH 32000;
.SET FOLDLINE ON 1,2;
.SET ECHOREQ OFF;