I am not aware of a mainframe product to build a CSV file. After all, from where would one build such a file? Its not as if you are running EXCEL on the mainframe. Well, we did use to have VisiCalc.
I suppose one could code a REXX (or some other language) to create a delimited file. Or if the data is accessible with SQL one could use it to format such a file.