SQL Anywhere can extract SQL from log files with the included dbtran command. For example, execute following SQLs
insert into tablea values (1,'aaaaa');
commit;
and then "from the command line" (the OS command line, not Interactive SQL, etc.).
dbt...