IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

BMC Unload/Load issue


IBM Mainframe Forums -> DB2
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
alluri12

New User


Joined: 15 Aug 2006
Posts: 44
Location: Virginia, USA

PostPosted: Wed Jun 04, 2008 9:46 am
Reply with quote

Hi,
I am having problem in unload and load process
Before unload
I had a table abcd with
col1 char(4) not null with default
col2 char(3) not null with default
col3 char(3) not null with default
col4 varchar(49) not null with default
TABLE EFGH
col1 char(4) not null with default
col2 char(3) not null with default
col3 char(3) not null with default
col4 char(9) not null with default
col5 char(10) not null with default
col6 char(10) not null with default

All these days I tried to unload data from ABCD table and used to
load replace data into EFGH table. It worked fine.

But now due to new requirements we got to ALTER the table to add 4
new columns to both the tables ABCD and EFGH.
Now the new table looks like

I had a table abcd with
col1 char(4) not null with default
col2 char(3) not null with default
col3 char(3) not null with default
col4 varchar(49) not null with default
col5 char(3) nulls with default
col6 char(3) nulls with default
col7 char(3) nulls with default
col8 varchar(50) nulls with default
TABLE EFGH
col1 char(4) not null with default
col2 char(3) not null with default
col3 char(3) not null with default
col4 char(9) not null with default
col5 char(10) not null with default
col6 char(10) not null with default
col7 char(3) nulls with default
col8 char(3) nulls with default
col9 char(3) nulls with default
col10 varchar(50) nulls with default

I tried to unload data from abcd.what is happening is if the col4 varchar(49)
has data until 30 bytes and remaining is spaces, then data from col5, col6,
col7 and col8 coming into this spaces. Because of that i am not able to load the data
into other table. The error i am getting is
BMC51502E FIELD 'COL7' EXTENDS BEYOND END-OF-RECORD, START POSITION = 66
END POSITION = 69, RECORD NO. 1 OF SYSREC01, LENGTH = 68
Table abcd has data
Code:
col1 col2 col3 col4                                             col5 col6 col7 col8
1111 033  109  035200902033106010MIMIGUELO01                    ...? ...? ...? ..?         
1111 033  109  035200902033106010MIMIGUELO01AAABBB11122233344455...? ...? ...? ..?   


This is the unloaded data
Code:
1111033109035200902033106010MIMIGUELO01...?...?...?..?
1111033109035200902033106010MIMIGUELO01AAABBB11122233344455...?...?...?..?


The unloaded data i am expecting is
This is the unloaded data
Code:
1111033109035200902033106010MIMIGUELO01                    ...?...?...?..?
1111033109035200902033106010MIMIGUELO01AAABBB11122233344455...?...?...?..?


Could anybody please help me in getting the expected output to load into the other table
Code:
Back to top
View user's profile Send private message
Santoshdorge

New User


Joined: 27 Jun 2006
Posts: 48
Location: Pune

PostPosted: Wed Jun 04, 2008 10:55 am
Reply with quote

Hi Alluri,
My Primary guess is atfer altering the table abcd you don't have the proper values in the newly added columns due to 'with default' caluse.
You may need to initialize all newly added column according to the data type. And then try unload the same and loading into EFGH table.

Thanks,
Santosh.
Back to top
View user's profile Send private message
alluri12

New User


Joined: 15 Aug 2006
Posts: 44
Location: Virginia, USA

PostPosted: Wed Jun 04, 2008 7:13 pm
Reply with quote

Hi Santhosh
This has nothing to do with the initializing. We are expecting nulls new the new columns. The actual problem is at varchar, just before the new column starts i.e at col4. If the data in the VARCHAR is less than 49 and it has spaces after that then the new column data i.e col5 data is coming into that. This messes up when u try to load data into other table.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts How to load to DB2 with column level ... DB2 6
No new posts Remote Unload of CLOB Columns DB2 6
No new posts Multiple table unload using INZUTILB DB2 2
Search our Forums:

Back to Top