migrating tables from MVS to Windows version of DB2

Ask a Question related to IBM DB2, Design and Development.

  1. #1

    Default migrating tables from MVS to Windows version of DB2

    Hello.

    We are tring to migrate a bunch of table that resides db2 (version 6 I
    believe) on a MVS mainframe environment to DB2 UDB version 7.0 on a
    windows NT environment.

    We are tring to achive this by exporting and importing in the IXF
    format, however the PC/IXF format appears to differ from that export
    from the mainframe.

    Does anyone have any suggestion on how to migrate these tables
    accross. There are around 100 tables, some of which have alot of
    colunms.

    Thanks in advance
    Stephen Jenkinson Guest

  2. Similar Questions and Discussions

    1. Migrating to Windows 2003
      Hello all, I'm seeking for expert advice on the migration issue. We are looking to Migrate from Windows 2000 to Windows 2003, and we are running...
    2. Migrating MySQL Windows to Mac
      Using the MySQL Migration Tool, I converted my MS SQL data to MySQL on Windows. Now I need to move the data to MySQL on my Mac (10.3.9). Any idea...
    3. Migrating to Windows Server 2003
      My company is looking to buy a server with windows server 2003. What operating system do you need on your pc to be able to connect to it.
    4. migrating perl from version x to version y
      Can some one tell me if there is an easy way generally speaking to migrate one version of perl and the modules installed under it to another...
    5. Advice on migrating from 8.0.5 to 8.1.7 on Windows
      John wrote: Not knowing how large it is my thought would be that you have overcomplicated things. Why not: 1. Create 8.1.7.4 database with...
  3. #2

    Default Re: migrating tables from MVS to Windows version of DB2

    Stephen Jenkinson" <sp.jenkinson@student.qut.edu.au> wrote in message
    news:4f7c9ed9.0309111641.543aa4e@posting.google.co m...
    > Hello.
    >
    > We are tring to migrate a bunch of table that resides db2 (version 6 I
    > believe) on a MVS mainframe environment to DB2 UDB version 7.0 on a
    > windows NT environment.
    >
    > We are tring to achive this by exporting and importing in the IXF
    > format, however the PC/IXF format appears to differ from that export
    > from the mainframe.
    >
    > Does anyone have any suggestion on how to migrate these tables
    > accross. There are around 100 tables, some of which have alot of
    > colunms.
    >
    > Thanks in advance
    You can create some sequential MVS files with the DB2 sample program
    DSNTIAUL (See Appendix D of the Version 6 Utilities Manual) and then
    download the files to NT. Make sure you convert packed (comp-3) and binary
    (comp) fields to display numeric (maybe with the CAST function on the select
    that extract the data). You will need to download the files as MVS text, not
    binary, using a program like IBM's Personal Communications that will convert
    the data from EBCDIC to ASCII.

    Then you can use import/load utility on DB2 for Windows. Obviously, you will
    have to create the tables and indexes, etc on DB2 for Windows before-hand.

    Just out of curiosity, what did you use to create the IXF extract on the
    mainframe?

    I realize you may not have much control over this, but it runs a lot better
    under Windows 2000.


    Mark A Guest

  4. #3

    Default Re: migrating tables from MVS to Windows version of DB2

    Stephen,

    If you have DB2 Connect access to mainframe DB2 then you can run the
    export command from the UDB side, pulling the data from the mainframe.

    If you use IXF format, you can then use the IMPORT command with the
    INSERT_CREATE option to create the table on UDB.

    If you have lots of data suggest you do the export first with no data, and
    use IMPORT to create the table. Then do the export again for all the
    data, but use the LOAD (without logging) command to put the data into UDB.

    You'll still need to define the indexes by hand, but you can use db2look
    to generate these for you (from the mainframe). Or you can use your
    favourite mainframe tool to produce the index DDL for you.

    HTH

    Phil Nelson

    On Thu, 11 Sep 2003 19:30:13 -0600, Mark A wrote:
    > Stephen Jenkinson" <sp.jenkinson@student.qut.edu.au> wrote in message
    > news:4f7c9ed9.0309111641.543aa4e@posting.google.co m...
    >> Hello.
    >>
    >> We are tring to migrate a bunch of table that resides db2 (version 6 I
    >> believe) on a MVS mainframe environment to DB2 UDB version 7.0 on a
    >> windows NT environment.
    >>
    >> We are tring to achive this by exporting and importing in the IXF
    >> format, however the PC/IXF format appears to differ from that export
    >> from the mainframe.
    >>
    >> Does anyone have any suggestion on how to migrate these tables
    >> accross. There are around 100 tables, some of which have alot of
    >> colunms.
    >>
    >> Thanks in advance
    >
    > You can create some sequential MVS files with the DB2 sample program
    > DSNTIAUL (See Appendix D of the Version 6 Utilities Manual) and then
    > download the files to NT. Make sure you convert packed (comp-3) and binary
    > (comp) fields to display numeric (maybe with the CAST function on the select
    > that extract the data). You will need to download the files as MVS text, not
    > binary, using a program like IBM's Personal Communications that will convert
    > the data from EBCDIC to ASCII.
    >
    > Then you can use import/load utility on DB2 for Windows. Obviously, you will
    > have to create the tables and indexes, etc on DB2 for Windows before-hand.
    >
    > Just out of curiosity, what did you use to create the IXF extract on the
    > mainframe?
    >
    > I realize you may not have much control over this, but it runs a lot better
    > under Windows 2000.
    Philip Nelson Guest

  5. #4

    Default Re: migrating tables from MVS to Windows version of DB2

    Stephen,

    Actually any ODBC driver should do the trick, DB2 Connect, StarSQL,
    HiT, you name it!

    Bob

    Philip Nelson <newsaccess@scotdb.com> wrote in message news:<pan.2003.09.12.18.44.48.608721@scotdb.com>.. .
    > Stephen,
    >
    > If you have DB2 Connect access to mainframe DB2 then you can run the
    > export command from the UDB side, pulling the data from the mainframe.
    >
    > If you use IXF format, you can then use the IMPORT command with the
    > INSERT_CREATE option to create the table on UDB.
    >
    > If you have lots of data suggest you do the export first with no data, and
    > use IMPORT to create the table. Then do the export again for all the
    > data, but use the LOAD (without logging) command to put the data into UDB.
    >
    > You'll still need to define the indexes by hand, but you can use db2look
    > to generate these for you (from the mainframe). Or you can use your
    > favourite mainframe tool to produce the index DDL for you.
    >
    > HTH
    >
    > Phil Nelson
    >
    > On Thu, 11 Sep 2003 19:30:13 -0600, Mark A wrote:
    >
    > > Stephen Jenkinson" <sp.jenkinson@student.qut.edu.au> wrote in message
    > > news:4f7c9ed9.0309111641.543aa4e@posting.google.co m...
    > >> Hello.
    > >>
    > >> We are tring to migrate a bunch of table that resides db2 (version 6 I
    > >> believe) on a MVS mainframe environment to DB2 UDB version 7.0 on a
    > >> windows NT environment.
    > >>
    > >> We are tring to achive this by exporting and importing in the IXF
    > >> format, however the PC/IXF format appears to differ from that export
    > >> from the mainframe.
    > >>
    > >> Does anyone have any suggestion on how to migrate these tables
    > >> accross. There are around 100 tables, some of which have alot of
    > >> colunms.
    > >>
    > >> Thanks in advance
    > >
    > > You can create some sequential MVS files with the DB2 sample program
    > > DSNTIAUL (See Appendix D of the Version 6 Utilities Manual) and then
    > > download the files to NT. Make sure you convert packed (comp-3) and binary
    > > (comp) fields to display numeric (maybe with the CAST function on the select
    > > that extract the data). You will need to download the files as MVS text, not
    > > binary, using a program like IBM's Personal Communications that will convert
    > > the data from EBCDIC to ASCII.
    > >
    > > Then you can use import/load utility on DB2 for Windows. Obviously, you will
    > > have to create the tables and indexes, etc on DB2 for Windows before-hand.
    > >
    > > Just out of curiosity, what did you use to create the IXF extract on the
    > > mainframe?
    > >
    > > I realize you may not have much control over this, but it runs a lot better
    > > under Windows 2000.
    DB2 Guest

  6. #5

    Default Re: migrating tables from MVS to Windows version of DB2

    I'd have to scan the doc again but i think IXF actually stores the index
    definition.

    PM


    PM \(pm3iinc-nospam\) Guest

  7. #6

    Default Re: migrating tables from MVS to Windows version of DB2

    IXF will include the index definitions if:
    1) the select is of type select * from table
    2) The index is user built as opposed to system built ( as in not from:
    create table (empid int not tull primary key(empid)....)
    Regards, Pierre.

    PM (pm3iinc-nospam) wrote:
    > I'd have to scan the doc again but i think IXF actually stores the index
    > definition.
    >
    > PM
    >
    >
    P. Saint-Jacques Guest

  8. #7

    Default Re: migrating tables from MVS to Windows version of DB2

    IXF will include the index definitions if:
    1) the select is of type select * from table
    2) The index is user built as opposed to system built ( as in not from:
    create table (empid int not tull primary key(empid)....)
    Regards, Pierre.

    PM (pm3iinc-nospam) wrote:
    > I'd have to scan the doc again but i think IXF actually stores the index
    > definition.
    >
    > PM
    >
    >
    P. Saint-Jacques Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139