Exports the schedule table data to a text.
eOk if the operation completed successfully, or an appropriate error code otherwise.