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



If it is a requirement that servlets not be involved then you could map a
drive to their /home directory in the IFS. They could copy the file there
and then do a call from the command line.

Personally I think the servlet approach is the best way (say web page). That
is how I have done it in the past using this tool:
http://datafile.sourceforge.net/ Then if you find data that is not expected
(i.e. alpha in numeric column, invalid date format, missing value, etc) you
can catch the error and report it back to the user in their browser. Pretty
slick.

I used it to allow "mass configuration" from an excel csv file to make it
easier (more timely) for an admin to maintain the software I wrote.

HTH,
Aaron Bartell 

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Jake M
Sent: Tuesday, April 25, 2006 10:13 AM
To: Java Programming on and around the iSeries / AS400
Subject: Re: MS Excel ====>> iSeries.

Aaron,
I am attaching a sample excel file which is supposed to be uploaded. I do
not think it is too complicated but please me know your thoughts on it. Now,
if I want to use the CPYFRMIMPF to import the file to DB2 from java
program...I can do it very quickly from a .java app from my pc but how would
an end user accomplish that? Do you think I can create a java app where the
user can do something like this on iSeries..

'CALL UPLOADPROG('myxlfile.xls')'

and bam!!! the data gets uploaded but again....what if the user tries to
upload badly formatted data? Well, I guess the program won't execute and the
user will know...Will that be a good approach?

I appreciate your help.

cheers,

Jake.

On 4/25/06, albartell <albartell@xxxxxxxxx> wrote:
>
> How complex is the .xls file?  If it was liking to a csv file you 
> could use CPYFRMIMPF to import the file to a DB2 table from your Java 
> program.
>
> HTH,
> Aaron Bartell
>
> -----Original Message-----
> From: java400-l-bounces@xxxxxxxxxxxx [mailto:
> java400-l-bounces@xxxxxxxxxxxx]
> On Behalf Of Jake M
> Sent: Tuesday, April 25, 2006 8:55 AM
> To: Java Programming on and around the iSeries / AS400
> Subject: MS Excel ====>> iSeries.
>
> Hello Pro's;
>
> I have a little situation which I want to run by the pro's to see if 
> anybody did something like this before. I have lots of users who use 
> MS Excel. I want to give them some ability to upload the data from 
> their spreadsheets on to a physical file on the iSeries. This is the 
> approach I have in place currently...I have a combination of 
> servlets/jsp page's where they can upload the spreadsheet to the 
> server and then they can call another jsp page which will parse 
> through the excel spreadsheet they just uploaded and push the data 
> into the physical file on the iSeries. I am running Tomcat on a 
> windows NT box and that box talks to the iSeries. Needless to say this 
> is taking a lot of time considering the fact I have about 25 users who 
> want to use this process. Now, there might be a very simple readymade 
> tool out there for this kind of purpose but I wanted to explore the 
> 'home grown' solution first...Any suggestions or input in this matter 
> would be much appreciated.
> Thanks in advance.
>
> cheers,
>
> Jake.
> --
> This is the Java Programming on and around the iSeries / AS400 
> (JAVA400-L) mailing list To post a message email: 
> JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list 
> options,
> visit: http://lists.midrange.com/mailman/listinfo/java400-l
> or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a 
> moment to review the archives at http://archive.midrange.com/java400-l.
>
> --
> This is the Java Programming on and around the iSeries / AS400 
> (JAVA400-L) mailing list To post a message email: 
> JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list 
> options,
> visit: http://lists.midrange.com/mailman/listinfo/java400-l
> or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a 
> moment to review the archives at 
> http://archive.midrange.com/java400-l.
>
>


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.