Peter WIRFS

UC4 scripting and flat files (V9)

Discussion created by Peter WIRFS on May 27, 2015
Latest reply on Dec 15, 2015 by Mark_Hadler_430
I've used PREP_PROCESS_FILE() and GET_PROCESS_LINE() quite a few times to read a file into a UC4 script.

Do we have the reverse available?  I want to generate an output file from my UC4 script?

My full requirement is I'm using a database agent job to SELECT some data from a database.  UC4 already nicely formats the results into CSV format into the REP.  But now I want to automatically export the REP results into a CSV file that can be used elsewhere.  I'm trying to do so from my PostProcess script but have not figured out how to write a file from PostProcess.

Outcomes