I tried this and it ran without any errors:
select datasource || ',' || contno || ',' || tranno || ',' || tranmode || ',' ||
trantype || ',' || trantypedescription || ',' || primarycurr || ',' ||
bunit || ',' || bunitshortname || ',' || bunitfullname || ',' || cpty || ',' ||...