Reading a csv file is simple with Python.

This article outlines it pretty well. https://realpython.com/python-csv/

A reason you wouldn't want cpyfrmimpf is because you may want to do
additional manipulation on the data before putting it in the db. Also may
want to eliminate fields.

Will you run this on IBM i or on a Windows/Linux machine?

-Jim

On Mon, Jun 17, 2019 at 4:03 PM Mike Loyd <mloyd@xxxxxxx> wrote:

Hi all
This is my first post so here goes.
I need to take a CSV file in the IFS on the iSeries and write the data to
a data base file.
I am looking at Python to do this. I already have a script to get a XLS
spread sheet to a data base file.
I have a simple script to read and print a CSV file. So, I need that piece
to parse the CSV file and write the data.

Thanks in advance.

Mike Loyd
Sr. Software Engineer
Recreational Equipment, Inc. (REI)
' o: 425-278-8265
| * mloyd@xxxxxxx<mailto:mloyd@xxxxxxx> | www.rei.com<http://www.rei.com/>
[cid:image002.png@01D10BD3.03D87F20]

--
This is the IBMi Open Source Roundtable (OpenSource) mailing list
To post a message email: OpenSource@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/opensource.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


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