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

Deleting records from teradata table


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
murugan_mf

Active User


Joined: 31 Jan 2008
Posts: 148
Location: Chennai, India

PostPosted: Fri Oct 24, 2008 12:03 pm
Reply with quote

Hi,

I have a daily job which needs to delete records from teradata table before loading the table everyday.

Through MLOAD we can load data to teradata table.Is it possible to wipe out the records in the table before loading with new records.

Thanx in advance for ur reply.

Thanks!
Murugan.l
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Oct 24, 2008 12:42 pm
Reply with quote

Hi,

I'm not a Dataware House guy, however this is what I got after surfing the net a little:

Quote:
We just drop and recreate the staging table every time. We keep a pristine version of the table with zero rows called xxx_staging_tmpl(template). So after the table is dropped we just do a CTAS from template. Just make sure that the staging table you create is multiset and the same primary key as the template table.

Quote:
In informatica, you can create multiple Mload connections like
Insert Mload
Update Mload
Delete Mload
Upsert Mload

If you wanna delete records from table, use Delete Mload, Truncate option will be disabled, if you use external loaders.


PS. Today work-load is lil less.. icon_wink.gif
Back to top
View user's profile Send private message
murugan_mf

Active User


Joined: 31 Jan 2008
Posts: 148
Location: Chennai, India

PostPosted: Fri Oct 24, 2008 1:42 pm
Reply with quote

Thanx anuj.But i dont know Delete Mload is possible in teradata.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Oct 24, 2008 1:46 pm
Reply with quote

Hi,

Search on "mload scripts + delete" in Google.
Back to top
View user's profile Send private message
murugan_mf

Active User


Joined: 31 Jan 2008
Posts: 148
Location: Chennai, India

PostPosted: Fri Oct 24, 2008 1:46 pm
Reply with quote

Anuj i checked in the manual and i could find the syntax for Delete MLOAD.Thanks again!
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Oct 24, 2008 2:18 pm
Reply with quote

Great, Hopefully syntax will be implemented successfully.

Have a Great weekend & Happy Diwali... icon_smile.gif

-Ad
Back to top
View user's profile Send private message
murugan_mf

Active User


Joined: 31 Jan 2008
Posts: 148
Location: Chennai, India

PostPosted: Fri Oct 24, 2008 2:27 pm
Reply with quote

Happy Diwali
Back to top
View user's profile Send private message
dharmendra_kp

New User


Joined: 10 Mar 2005
Posts: 33
Location: Lewiston

PostPosted: Fri Oct 24, 2008 4:56 pm
Reply with quote

I gues load process transfers data from file (PS) to table. So in order to delete the table containt can we load an empty file? That is how we delete data DB2 tables.
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top