Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Problem while Loading data to database in different regions

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
SharathG

New User


Joined: 23 Jan 2007
Posts: 12
Location: India

PostPosted: Wed Jul 25, 2007 4:58 pm    Post subject: Problem while Loading data to database in different regions
Reply with quote

Hi All,

I wrote a Batch-DB2 program to unload selected rows from a table in one development region and load it to the same table in a different development region. It is working properly and as designed.

The problem occurs when the structure of the table in one region is changed (may be increasing the length of one column etc). If I then try to load the table with data unloaded from table of a different region, I will get a -310 SQL return code (obviously) as the table contains decimal columns also.

Can I do something to avoid getting -310 SQL code and also load the table properly? One thing that I can do is modify the sequential file (used to load the table) to suit the destination table's characteristics, may be through SORT or ICETOOL. Are there any other suggestions?

Let me know if you need any other information. Thanks...
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Wed Jul 25, 2007 6:39 pm    Post subject:
Reply with quote

Do you really have the same table in different regions with different data layouts?

If you know what needs to be changed, SORT has the capability to help with the reformat.
Back to top
View user's profile Send private message
SharathG

New User


Joined: 23 Jan 2007
Posts: 12
Location: India

PostPosted: Wed Jul 25, 2007 7:33 pm    Post subject: Re: Problem while Loading data to database in different regi
Reply with quote

Yeah Sort remains the option even from my side.

The data layout is not completely different. The database was installed in production region some time back. The development region's database is undergoing some changes and these changes would be in production during the next install. Till then, the unloading and loading will happen and that's where I am facing the problem.

Anyway thanks for the suggestion.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us