Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Success: Running pan on iSeries (AS/400, System i5)

  1. #1
    Join Date
    Nov 1999

    Default Success: Running pan on iSeries (AS/400, System i5)

    Just tested if pan runs on an iSeries (formerly known as AS/400, new marketing name is System i5 ;-)

    Summary: yes it does with one minor change in!

    What I did:

    - start qsh on iSeries (qsh is an unix shell - pan should work in the native OS/400 mode, also. But then one must include all the libs what the does. If anyone is interested in the native mode, give me an info.)

    > java -version
    Java-Version "1.4.2"
    > cd /kettle
    Pan is not supported on this hosttype : OS400
    > uname -s
    --> change the to support OS400, see below
    --> First success:
    Java-Programm wird /kettle/lib/kettle.JAR zugeordnet.
    -rep : Repository name
    -user : Repository username
    -pass : Repository password
    -trans : The name of the transformation to launch
    -dir : The directory (don't forget the leading / or \)
    -file : The filename (Transformation in XML) to launch
    -level : The logging level (Basic, Detailed, Debug, Rowlevel, Error, Nothing)
    -logfile : The logging file to write to
    -listdir : List the directories in the repository
    -listtrans : List the transformations in the specified directory
    -exprep : Export all repository objects to one XML file
    -norep : do not log into the repository

    --> Try the transformation (read from an iSeries native Table, write to another iSeries native Table
    and then write to a MS SQL database)
    2006/03/16 14:41:44 - Pan - Finished!
    2006/03/16 14:41:45 - Pan - Start=2006/03/16 14:39:20.595, Stop=2006/03/16 14:41:44.994
    2006/03/16 14:41:45 - Pan - Processing ended after 144 seconds.
    --> YES, it works (and also the rows are processed correctly ;-)

    ----- and here is the change -----
    Since pan needs the swt lib which is not supported on iSeries native by design ("green screens"), I decided
    just to use the linux swt lib - believe me, it is not really called by pan, just needed for the class dependencies.


    OS400) <--- new
    LIBPATH=libswt/linux/ <--- new
    ;; <--- new


    ----- another JDBC driver option ----
    If you want to use only the local iSeries database you could also use the driver
    instead of the
    IÂÂ'm not shure if there is a performance aspect to use the local driver. This is on my plan for a future trial.
    If someone needs this before, one could change the
    - detect if you run on an iSeries with System.getProperty("").equals("OS/400");
    (hope this is constant with the latest release where the OS/400 name changed to i5/OS - but not shure
    if it is changed within this system property ;-)
    - change getDriverClass()
    - change getURL() (this is jdbc:db2://*LOCAL or jdbc:db2://database)

    Now whatÂÂ's still open?
    - How could we solve the issue with the swt libs a little bit better?
    - Add the iSeries (or the actual marketing name) to the supported plattforms fact sheet ;-)


  2. #2
    Join Date
    Nov 1999

    Default RE: Success: Running pan on iSeries (AS/400, System i5)

    Awesome dude!

  3. #3
    Join Date
    Nov 1999

    Default Update

    to the AS/400 , iSeries fans:

    Since Kettle 2.4.x all the SWT references are deleted from the batch shell scripts, but:
    The IBM JVM (I know this for OS/400) has an optimizer and scanns all classes at first time, resolves the references / JARS and compiles them to native. And this fails with the SWT classes - so the optimizer is not intelligent enough ;-)

    No matter, we will add a circumvention for this in the shell script:
    if [ `uname -s` = "OS400" ]

    This will be included in the dev version in the next few minutes and in the next GA release, 2.5.x.

    Last edited by jbleuel; 03-25-2007 at 04:15 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.