|
-----Original Message-----
From: Art Tostaine, Jr.
You can make an intermediate with all alpha fields and CPYF *NOCHK to it.
If they are packed numeric then you need to write a quick conversion.
I'd just write a program to create the CSV. It's so simple and you avoid CPYTOIMPF crapping out on you some day.
Read input record or SQL read
output = %trim(field1) + ',' + %trim(%editc(field2:'Z')) + ','..... etc.
write output
read
end
Art
On Fri, Oct 20, 2017 at 3:16 PM, Bob Cagle <bcagle@xxxxxxxxxxx> wrote:
I'm starting to work with a cloud EDI provider and they've asked me to
provide them data in a specific format - a comma separated text file,
with each field wrapped in double quotes:
"xx", "123" etc...
I've been playing with CPYTOIMPF and it's working, except for the
numeric fields. I've done some googling and I'm not finding anything.
Is there a way to make CPYTOIMPF wrap numeric fields in double quotes?
Thanks
Bob Cagle
IT Manager
Lynk
This mailing list archive is Copyright 1997-2026 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.