Special function for records export in the given format.