|
Pete,
If you use CPYFRMIMPF with the RCDDLM(*CRLF) and FROMRCD(2) parameters
you can skip the .txt futzing in your process.
1) Save from Excel (I prefer CSV format)
2) FTP
3) Create table with columns
4) CPYFRMIMPF (from FTP import file to table)
Paul Morgan
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Pete Hall
Sent: Wednesday, November 09, 2011 8:54 PM
To: midrange-l@xxxxxxxxxxxx
Subject: Re: Upload excel sheet to DB2 file on AS400
On Wed, 09 Nov 2011 16:52:42 -0500, Ashish Kulkarni wrote:
Hiis
I have an excel sheet how can i upload this file to AS400 DB2 table,
there any excel plugin to do so or iseries navigator method?
I usually save the worksheet as a tab delimited .txt document from
excel,
delete the column headings, and the trailing carriage return/linefeed
with a windoz editor like textpad, ftp it to my home directory in the
i,
create an import table having columns that exactly match the excel
document, then copy the tab delimited file to the table with
cpyfrmimpf.
Sounds more complicated than it really is. It's pretty fool-proof, and
it
works every time.
--
Pete Hall
pete@xxxxxxxxxxxxxx
--
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.
--
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.
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.