Can we call bteq script in mload script.
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.


Can we call bteq script in mload script. Expand / Collapse
Author
Message
Posted 1/27/2006 5:47:12 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/29/2007 11:08:21 PM
Posts: 6, Visits: 2
Hi,
Can we call bteq script in mload script.

Please advice. Thanks
Post #3455
Posted 2/1/2006 10:16:20 AM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 5/30/2008 6:49:12 AM
Posts: 57, Visits: 2
Hi,
It is not possible to call a BTEQ script from within an MLoad script. What specifically are you trying to do here? If i understand you correctly, you are trying to use conditional flow control. If that is what you are trying, then it is not possible from within MLoad scripting. On the other hand, if you want features like flow control, then use BTEQ itself as the loading tool and you can branch to other section of scripts correspondingly based on your requirements.


Strive to success.

Arun.

Post #3463
Posted 2/2/2006 12:38:26 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: PAC and SFT Members
Last Login: Today @ 6:11:07 PM
Posts: 331, Visits: 533
At least in a network attached environment you can use .SYSTEM to invoke any command line including BTEQ or something that calls BTEQ. On the mainframe you'd probably have to write your own "shell" program that could be called by .SYSTEM and would then call BTEQ. But why bother when you can check for errors directly within MLOAD's support environment?
Post #3469
Posted 2/2/2006 9:51:13 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 10/7/2008 6:20:30 PM
Posts: 136, Visits: 11
you can use .OS command MLOAD utility within a BTEQ.
You will have to ensure that MLOAD executable path is set.

Here's a sample

.LOGON TDPID/UID,*****;

.export report file = rep.txt;

select * from DBC.COLUMNS SAMPLE 10;

.os mload < mload.txt;

.export reset;
.logoff;

.quit;

Hope this helps.

Vinay
Post #3471
Posted 2/2/2006 12:31:26 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/29/2007 11:08:21 PM
Posts: 6, Visits: 2
Yes, I did it with the same way..

Thanks for your response..

Regards
Post #3475
« Prev Topic | Next Topic »


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


All times are GMT -5:00, Time now is 11:58pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.172. 8 queries. Compression Disabled.