× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



That's exactly what I was thinking of doing - just create the CSV programmatically. Just seems like there should be a shortcut!

That would also solve my additional dilemma of them wanting multiple records from multiple files all in the same CSV file.

Thanks

Bob Cagle
IT Manager
Lynk


-----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

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.