Extract Speed from DB2

  • Ross McMicken (5/1/2013)


    Jeff, you should also check to see if the AS400 you need to extract from has any third party query tools on it, or Query/400. Those generally have th eability to save data to the area that's accessible from other computers.

    Thanks, Ross. I already checked with the AS400 guys and they said they used to have one but didn't see the utility in it so they got rid of it and never renewed the license. :crying: Guess I'll have to hit Google a little harder and see if I can come up with a free tool because they don't want to spend any money on it even if it were to turn a memory sucking, CPU burning, network churning 4+ job into a 10 or 15 minute breath of fresh air. 😛

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.
    "Change is inevitable... change for the better is not".

    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)
    Intro to Tally Tables and Functions

  • In my past experience (admittedly with an old AS/400 version and a dysfunctional IT team), the only reliable way to get data out of an AS400 was to use one of the supplied AS/400 windows client tools to dump it down to a text file and then load the text file into SQL Server. This was quite some time ago - some technical aspects may have changed since then.

  • Jeff, the IBM documentation is very good. You can find it at http://publib.boulder.ibm.com/iseries/

    The copy commands I mentioned earlier are built in to the AS400, and cna be scheduled if your AS400 guys write a short CL program to extract the data you want. CL is just a batch file with commands in it.

    You can also ftp data, but there's no translation of the IBM packed decimal format of numbers into something that is usable in SQL server. It's not hard to write a translator for that, and ftp is very fast.

    I feel your pain on losing tools. I had a senior IT manager ask me why anyone would want to get data out of the system. "If they need data, they should have a report written". He had no clue as to how the system was used, he jsut wanted to cut costs, no matter the impact.

Viewing 3 posts - 16 through 17 (of 17 total)

You must be logged in to reply to this topic. Login to reply