|
On Tue, Sep 6, 2016 at 5:43 PM Roger Harman <roger.harman@xxxxxxxxxxx>
wrote:
You're pretty much describing it as-is. We FTP the CSV file(s) - therethe
may be 1 to n. They then get copied to a flat 2048 byte record before
preliminary transform. That then gets copied to a real PF.
Let me clarify. I'm suggesting you copy the raw columnal data, not the raw
row data.
So do a CPYFRMIMPF to a physical file that has the same columns as the CSV,
but a VARCHAR for the money column. Then do a scalar UDF to transform that
column.
If you copy each record in the CSV to a one column record in a physical
file, your doing a lot of parsing that CPYFRMIMPF or Scott's tools can do
for you, and have been better battle tested for edge cases. If those tools
can't parse the $ signs, you just have to work on that line.
Or is CPYFRMIMPF failing to parse the columns?
--
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: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
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.