BTEQ examples
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.

««12

BTEQ examples Expand / Collapse
Author
Message
Posted 4/2/2007 11:58:30 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 8/9/2007 12:00:00 PM
Posts: 1, Visits: 1
Hi Swati,

.set quiet on might work for you.

Sharda
Post #7033
Posted 7/15/2009 11:03:08 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 8/11/2009 4:12:52 PM
Posts: 4, Visits: 18
Does anybody know how to suppress the same messages on a mainframe BTEQ?

Thanks,

Fernando Urrutia
Post #16200
Posted 8/26/2009 8:58:55 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 9/7/2009 5:40:12 AM
Posts: 5, Visits: 19
Hi,
Im trying to import data into tables from a file using BTEQ import.

im facing weird errors while doing this

Like:

if im using text file as input data file with ',' as delimiter as filed seperator im getting the error as below:

*** Failure 2673 The source parcel length does not match data that was defined.

or

if im using EXCEL file as input data file im getting the error as below:


*** Growing Buffer to 53200
*** Error: Import data size does not agree with byte length.
The cause may be:
1) IMPORT DATA vs. IMPORT REPORT
2) incorrect incoming data
3) import file has reached end-of-file.
*** Warning: Out of data.




please help me out by giving the syntax for BTEQ import using txt file as input data file and also the syntax if we use EXCEL file as the input data file


Also is there any specific format for the input data file for correct reading of data from it.
if so please give me the info about that.


Thanks in advance:)
Post #16675
Posted 9/7/2009 3:03:51 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 9/7/2009 5:40:12 AM
Posts: 5, Visits: 19
Some solution found out for the above query(Post #16675):
I've used the text file with data in which i used ',' as the field seperator and also the datatypes for all the fields in the USING clause are changed to 'varchar' irrespective of their original datatypes:
The code looks like this:

.LOGON TDPP/login_name,password
.import vartext ',' file = d:\input file path.txt
.QUIET ON
.REPEAT *
USING COL1 (VARCHAR(2))
,COL12 (VARCHAR(1))
,COL13 (VARCHAR(56))

INSERT INTO table name
( COL11
,COL12
,COL13)
VALUES ( :COL11
,:COL12
,:COL13
.QUIT




the code also works with fields seperated with a tab.
but it works only for
vartext ' ' (in the 2nd line of code)
but doesnt work for
vartext '\t'
Post #16773
« Prev Topic | Next Topic »

««12

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 10:16am

Powered By InstantForum.NET v4.1.4 © 2009
Execution: 0.031. 6 queries. Compression Disabled.