If a database does not have a log segment on a device that is separate from data segments, you cannot use dump transaction to copy the log and then truncate it.
This example dumps the database mydb, which does not have a log segment on a separate device from data segments, and then truncates the log:
dump database mydb to mydevice dump transaction mydb with truncate_only