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

SAVE DATA AS to concatenate multiple tables


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Nagendran

New User


Joined: 24 Jan 2007
Posts: 89
Location: USA

PostPosted: Tue Jun 17, 2008 8:29 pm
Reply with quote

hi,

I have used SAVE DATA AS commmand to create a separate two test table.

Table is created as follows,

SCHEMANAME.TABNAME1
SCHEMANAME.TABNAME2

1)Now is it possible to concatenate these two tables?...
2)Do we have any utility for that?
3)If each table has more than 50 lakhs records, is it possible to concatenate 25 tablse at a time.

could any body help me with this?

Thanks,
Nagendran.R
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jun 17, 2008 9:49 pm
Reply with quote

Hello,

Where did you "save" these "tables"?

What is your meaning of "concatenate" for these tables? Concatenation is (typically) used for sequential (qsam) processing rather than database table processing.

It you clarify what you have and what you want to do, someone may have suggestions.
Back to top
View user's profile Send private message
Nagendran

New User


Joined: 24 Jan 2007
Posts: 89
Location: USA

PostPosted: Tue Jun 17, 2008 10:11 pm
Reply with quote

Hi,

We are having a DB2 table in our system, we have set of files
needs to be loaded(nearly 5 crores) to this table.
We need to do this with in couple of days.....

I am having a suggestion like we can use SAVE DATA AS
command to create our own table......

so if we create 10 set of tables, then load each file into this ten table.
Till now it is possible.....

Is there any utility is available to concatenate all these tables and to
put it in Master table.

I dont know whether above will work or not????

Please let me know your suggestions.


Thanks,
Nagendran.R
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jun 17, 2008 10:48 pm
Reply with quote

Hello,

Quote:
Is there any utility is available to concatenate all these tables and to put it in Master table.
Not that i'm aware of. . .

If the data is places into these "new" tables and then read/loaded into the master table, the overhead will almost surely be far greater than loading directly in the first place.

Does this "nearly 5 crores" mean 50 million (many people here do not know those units of measure)? What kind of data does the table contain?
Back to top
View user's profile Send private message
Nagendran

New User


Joined: 24 Jan 2007
Posts: 89
Location: USA

PostPosted: Tue Jun 17, 2008 11:00 pm
Reply with quote

Hi,

I have to load record from sequential file to DB2.

We already written one program to load record into tables.

We have created set of jobs to load these records, when we run the jobs
parallely it got abends SQL code -904 deadloack.

So we dont have any other options, we are submitting one job at a time...

Is there any other way to identify the reason for the deadlock?

When we started the load, the records are loaded very fast, now
again the performace become very low.

If we use load utility will it give better performace than this?

Thanks,
Nagendran.R
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jun 17, 2008 11:25 pm
Reply with quote

Hello,

Quote:
If we use load utility will it give better performace than this?
Using the load utility will perform exponentially faster.

In your program you are probably doing an INSERT for each row - this will run slower as it continues. The higher the volume, the worse it will run.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 2
No new posts Store the data for fixed length COBOL Programming 1
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
Search our Forums:

Back to Top