webMethods

 View Only

 Creating a Flatfile with every field enclosed in Quotes (or QuotedRelease).

Chirag Sanghavi's profile image
Chirag Sanghavi posted Wed January 08, 2025 12:06 PM

Picking up a very old thread:


efficient-method-to-create-csv-with-double-quotes

Ibm remove preview
webMethods
I was wondering if anyone have an efficient method of creating CSV from IS document that includes header names and the data wrap with double quotes. I suppose
View this on Ibm >

if need is to use WmFlatFile and enclose every field with say quotes.  One of the method suggested by Rob Eamon is to use formatting service. 

It does add few inefficincies:

  1. Additional Service call  for each field
    1. more operations / more memory utilization
  2. Formatting service are involved both for writing and reading
    1. if need is to strip "" during reading - it needs to be applied as QuotedRelease character 
    2. using formatting service and quoted release at same time - doubles the quotes being generated - leading to need for having two Flatfile Schemas - one for read and one for write

Is there a better way of handling it?