|
Has anyone ever run into an issue when building a CSV file from a DB2 table (created with SQL create statement), where an extra string delimiter appears in the first column of the csv file.
We are producing a csv file for automatic distribution to a client.
The data base file is populated using an RPG ILE program, with a text
string being populated to a single field in the data base file 1000
characters long. The string is delimited with commas for fields and
double quotes (") for string fields. The file is then accessed
through a CL where the CPYTOIMPF command is run. The issue arises
because a string delimited (") is appearing at the end of the first
character field. This is our regular string delimiter as defined in
the CPYTOIMPF command (listed below).
CPYTOIMPF FROMFILE(QTEMP/HDCSVDLY) TOSTMF(&PATH) MBROPT(*REPLACE) STMFCODPAG(*PCASCII) RCDDLM(*CRLF) DTAFMT(*DLM) STRDLM('"') FLDDLM(',')
<<SNIP>>
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.