Posted: Thu Jul 18, 2013 7:00 am Post subject: Output CSV with column headers.
Novice
Joined: 10 May 2013 Posts: 17
Hi,
I am working a a project that selects some columns and output as a CSV file. What I did is defined a DFDL model for the output csv and user a resetcontent descriptor to reset it as csv. All those are working fine but the requirement need the column names to be the first record of the csv file. I know I can just insert it after the select sql result but is there a easier way to do it in the DFDL model?
Not really. DFDL describes the data format - not the data content of the message. You *can* do a few simple transformations of the data using DFDL's advanced features, but that is not why they are provided.
I recommend a Compute node with CREATE FIRSTCHILD OF OutputRoot.DFDL ...
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum