ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Output CSV with column headers.

Post new topic  Reply to topic
 Output CSV with column headers. « View previous topic :: View next topic » 
Author Message
zhumingvictor
PostPosted: Thu Jul 18, 2013 7:00 am    Post subject: Output CSV with column headers. Reply with quote

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?

Thanks.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Jul 18, 2013 7:25 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Well, let's see:

http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.samples.csv.doc%2Fdoc%2Fexploring_csv_sample.htm
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Fri Jul 19, 2013 12:46 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
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 ...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Output CSV with column headers.
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.