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



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 is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.