+ Reply to Thread
Page 1 of 8 1 2 3 ... LastLast
Results 1 to 10 of 77

Thread: TechTip: Excel on the Fly

  1. #1
    Guest.Visitor Guest

    Default TechTip: Excel on the Fly

    ** This thread discusses the article: TechTip: Excel on the Fly **
    What were your findings when comparing RPG against the pure Java version you provided?

  2. #2
    Guest.Visitor Guest

    Default TechTip: Excel on the Fly

    ** This thread discusses the article: TechTip: Excel on the Fly **
    Giuseppe, When we run the following statement we get an error (listed under the statement). SQL2XLS SQLSTMT('select baldue from qcustcdt') TOXLS('/home/rshaler/test.xls') Error message below: Cause . . . . . : An incorrect value... parameters: -- Function -- Commitment control -- Date format -- Date separator -- Time format -- Time separator -- Naming option -- DESCRIBE option -- Allow copy data Recovery . . . : Change the incorrect parameter value and try the request again. Refer to the description of the QSQPRCED API for a list of the valid parameter values.

  3. #3
    Guest.Visitor Guest

    Default TechTip: Excel on the Fly

    ** This thread discusses the article: TechTip: Excel on the Fly **
    Richard, there might be a limit on the number of bytes that you can pass, so if your file is overly large. You might want to give more selection criteria to your SQL stmt, as it would narrow down the number of hits you get. Just an idea, until Guiseppe gets back to you. We send data to excel spreadsheets all the time and I remember when we were setting up a command, that we ran into this limit. We were do IFS folder processing. If the .csv is too large, it can't import into excel.

  4. #4
    gcostagliola@tin.it Guest

    Default TechTip: Excel on the Fly

    ** This thread discusses the article: TechTip: Excel on the Fly **
    Hi Richard, take a look at the parameters in the Function template "sqlp0100". Some of these have been set for Europe. Maybe you should change: "datefmt", "datesep" "timefmt", "timesep", "decpos" according to your locale.

  5. #5
    gcostagliola@tin.it Guest

    Default TechTip: Excel on the Fly

    ** This thread discusses the article: TechTip: Excel on the Fly **
    I’ve tested on my iSeries “private” partition (a very little one – where the poi jar compile takes 1hr and 25 minutes !!). The following timings are not meaningful by theirself, but they can be useful for comparison. Maybe you ran the test on a powerful machine and would give us the results. Both db2_classes.jar and POI-2.0.jar have been compiled at 40 before running the test. Best elapsed: ===> SQL2XLS SQLSTMT('SELECT DBXFIL, DBXLIB, DBXTXT, DBXATR FROM QADBXREF') TOXLS('/home/costagliol/dbref.xls') COLHDRS(*FLDNAM) 3.500 rows -> 2’10’’ ===> RUNJVA CLASS(JSQL2XLS) PARM('SELECT DBXFIL, DBXLIB, DBXTXT, DBXATR FROM QSYS.QADBXREF') CLASSPATH('/home/costagliol/:/home/costagliol/db2_classes.jar:/excel/poi-2.0.jar') 3.500 rows -> 1’15’’ The “pure java” version wins, as expected; however I think that most of as/400 programmers feel more confortable with rpg than java, then they would accept to wait a little bit more to get it.

  6. #6
    Guest.Visitor Guest

    Default TechTip: Excel on the Fly

    ** This thread discusses the article: TechTip: Excel on the Fly **
    Well, I think if IBM can fix the CPYTOIMPF and have the first line the column headings, it will be very easy to send db2 to Excel format. Tiki

  7. #7
    gcostagliola@tin.it Guest

    Default TechTip: Excel on the Fly

    ** This thread discusses the article: TechTip: Excel on the Fly **
    With CPYTOIMPF you create a .csv that's another thing. However there are free utilities in internet that allow you to create .csv with column headings.

  8. #8
    Guest.Visitor Guest

    Default TechTip: Excel on the Fly

    ** This thread discusses the article: TechTip: Excel on the Fly **
    One thing I noticed. When trying to move a newly created file with OPS Navigator, I get the message that the file is being used. I can map a drive and open the file with EXCEL. I can also save the file. But, OPS Nav thinks the file is being used.

  9. #9
    gcostagliola@tin.it Guest

    Default TechTip: Excel on the Fly

    ** This thread discusses the article: TechTip: Excel on the Fly **
    If you have the folder in share, you can even delete it from windows explorer immediately after it has been created; from wrklink you can also delete it. I think it's only a problem of OPSnav.

  10. #10
    Guest.Visitor Guest

    Default TechTip: Excel on the Fly

    ** This thread discusses the article: TechTip: Excel on the Fly **
    Can anyone point me in the right direction for the free utilities to create column headings in CSV files? I really need this....thanks

+ Reply to Thread
Page 1 of 8 1 2 3 ... LastLast

Similar Threads

  1. TechTip: Excel Flies Higher with JExcelApi
    By Guest.Visitor in forum Microsoft
    Replies: 31
    Last Post: 04-01-2008, 03:48 AM
  2. TechTip: TechTip: Spooled Files and PDF, Part Three
    By scott@balrrexp.com in forum Document Management
    Replies: 23
    Last Post: 10-04-2006, 09:04 AM
  3. TechTip: MS Excel--They Gotta Have It!
    By idaschner@pfgc.com in forum Microsoft
    Replies: 17
    Last Post: 01-06-2005, 06:36 AM
  4. TechTip: Download Physical Files Using Microsoft Excel
    By Guest.Visitor in forum Microsoft
    Replies: 13
    Last Post: 10-08-2004, 08:55 AM
  5. TechTip: Automatically Load Data into Excel
    By Guest.Visitor in forum Microsoft
    Replies: 13
    Last Post: 07-21-2004, 09:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts