|
This will be running on the IBM I.
-----Original Message-----
From: OpenSource [mailto:opensource-bounces@xxxxxxxxxxxxxxxxxx] On Behalf
Of Jim Steil
Sent: Monday, June 17, 2019 2:11 PM
To: IBMi Open Source Roundtable <opensource@xxxxxxxxxxxxxxxxxx>
Subject: Re: [IBMiOSS] CSV file in the IFS, writing it to a DB2 file using
Python
Reading a csv file is simple with Python.
This article outlines it pretty well.
https://urldefense.proofpoint.com/v2/url?u=https-3A__realpython.com_python-2Dcsv_&d=DwICAg&c=CqkB-gCiM4xW6iOknju0uA&r=l8_Kw5BfK6Ei8qLuvBDSAA&m=Pe8kGlnGYiJCYdXU3i7ZikqAZ1piJiUVbRSVTQeZb8E&s=HgOrO8nekQ1HAZYI-ZSlvIUMnbOggJ6A7OfKh6Hbxe0&e=
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 allhttps://urldefense.proofpoint.com/v2/url?u=https-3A__archive.midrange.com_opensource&d=DwICAg&c=CqkB-gCiM4xW6iOknju0uA&r=l8_Kw5BfK6Ei8qLuvBDSAA&m=Pe8kGlnGYiJCYdXU3i7ZikqAZ1piJiUVbRSVTQeZb8E&s=Hr0KOJL9JAk6hrmrQ6nC5MBKqvv_mnvMs0-oyeYNdk4&e=
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://urldefense.proofpoint.com/v2/url?u=https-3A__lists.midrange.co
m_mailman_listinfo_opensource&d=DwICAg&c=CqkB-gCiM4xW6iOknju0uA&r=l8_K
w5BfK6Ei8qLuvBDSAA&m=Pe8kGlnGYiJCYdXU3i7ZikqAZ1piJiUVbRSVTQeZb8E&s=4-u
sYuZEe5ZJfrMm__vQ5M82duWz9g4VWA7uLFovP6A&e=
or email: OpenSource-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
.
--
Help support midrange.com by shopping at amazon.com with our affiliate
link:
https://urldefense.proofpoint.com/v2/url?u=https-3A__amazon.midrange.c
om&d=DwICAg&c=CqkB-gCiM4xW6iOknju0uA&r=l8_Kw5BfK6Ei8qLuvBDSAA&m=Pe8kGl
nGYiJCYdXU3i7ZikqAZ1piJiUVbRSVTQeZb8E&s=VaBvyFCx_spOUyw03B-WYgDIxVy09r
ivNnhw8VqX45Q&e=
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://urldefense.proofpoint.com/v2/url?u=https-3A__lists.midrange.com_mailman_listinfo_opensource&d=DwICAg&c=CqkB-gCiM4xW6iOknju0uA&r=l8_Kw5BfK6Ei8qLuvBDSAA&m=Pe8kGlnGYiJCYdXU3i7ZikqAZ1piJiUVbRSVTQeZb8E&s=4-usYuZEe5ZJfrMm__vQ5M82duWz9g4VWA7uLFovP6A&e=
or email: OpenSource-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://urldefense.proofpoint.com/v2/url?u=https-3A__archive.midrange.com_opensource&d=DwICAg&c=CqkB-gCiM4xW6iOknju0uA&r=l8_Kw5BfK6Ei8qLuvBDSAA&m=Pe8kGlnGYiJCYdXU3i7ZikqAZ1piJiUVbRSVTQeZb8E&s=Hr0KOJL9JAk6hrmrQ6nC5MBKqvv_mnvMs0-oyeYNdk4&e=
.
Help support midrange.com by shopping at amazon.com with our affiliate
link:
https://urldefense.proofpoint.com/v2/url?u=https-3A__amazon.midrange.com&d=DwICAg&c=CqkB-gCiM4xW6iOknju0uA&r=l8_Kw5BfK6Ei8qLuvBDSAA&m=Pe8kGlnGYiJCYdXU3i7ZikqAZ1piJiUVbRSVTQeZb8E&s=VaBvyFCx_spOUyw03B-WYgDIxVy09rivNnhw8VqX45Q&e=
--
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 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.