Multiload pre-Begin Mload Target Table DELETE ALL
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


Multiload pre-Begin Mload Target Table DELETE... Expand / Collapse
Author
Message
Posted 5/6/2006 1:00:56 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 5/9/2006 4:05:00 AM
Posts: 1, Visits: 1
I recently ran across an MLOAD Script that, prior to the BEGIN MLOAD, contained the standard set of DROP Work/ET/UV table statements along with an

DELETE FROM TABLENAME ALL;

all inside the Mload script, and all prior to the BEGIN MLOAD statement.

Normally, I would have placed all these statements inside a BTEQ script with error checking flow control prior to executing the MLOAD.

Observation: It appears that the DELETE FROM TABLENAME ALL; executing inside the MLoad prior to the Begin Mload statement is performing a standard DELETE FROM TABLENAME; which therefore, appears to be creating rows in the transient journal instead of simply marking the table header(s) as empty ( no rows ).

Any thoughts on this one?

bc
Post #4124
Posted 5/8/2006 4:01:01 AM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 10/12/2006 2:51:00 PM
Posts: 68, Visits: 1
Hi bc,
dropping/deleting tables or doing housekeeping sql before the .begin mload statement is permitted in a MLD thanks to the support environment that is a special environment that allows you to execute some sql between the .logon and the .begin statements.

I would prefer performing the cleansing of your tables in the mld script rather than in a separate btq.

Observation: if you run a delete from tablename all before the .begin mload statement, NO TRANSIENT JOURNAL is used. In fact, the statements performad useing the support environment don't use support environment, that is, you cannot rollback a failed sql.

Hope this helps,
Bye,
TDUser
Post #4126
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 8:57am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 7 queries. Compression Disabled.