What I will do first check my result set. Check that the data is clean and the data types are correct.
it had happen to me that one column is not in the right sequence.
Go to mySybase.com
select Products-sql anywhere. Click in the Buy . In the dropdown
Select SQL Anywhere Developer. Select OS and version (I think it only let you chose 16). And do check out. It is free and free shipping.