DEFINE STREAM my_stream. OUTPUT STREAM my_stream CONVERT SOURCE "ISO8859-1" TARGET "UTF-8" TO filename. FOR EACH customer: EXPORT customer. END. OUTPUT CLOSE.