Query that uses more than 100 columns not working properly through bteq
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.


Query that uses more than 100 columns not... Expand / Collapse
Author
Message
Posted 7/26/2008 7:42:50 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 4/15/2009 5:31:31 AM
Posts: 24, Visits: 59
Hi

I am using a query in my perl script on windows and hitting to teradata server using Bteq. This query is working on data of two tables having 55 columns each. When I run the script, i am getting below mentioned warning

*** Warning: Report has more than 100 column(s).
Only the first 100 column(s) will be displayed.

and getting the output for only 4 columns.I have already increased the buffer width to 64.
This query works fine in queryman without giving any warning.

The same type of error i also got when i used an another query for the tables more than 50 columns each in Unix shell script.

Please help me out to solve this problem.

Thanks
Kunal
Post #12256
Posted 7/26/2008 10:59:13 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 9/9/2009 2:15:41 PM
Posts: 25, Visits: 115
This is a BTEQ restriction, it can be over-ridden, check out the BTEQ manual for advice.

Good luck.
Post #12258
Posted 7/27/2008 5:21:03 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 4/15/2009 5:31:31 AM
Posts: 24, Visits: 59
Thanks................I got the answer from Bteq manual..............
Post #12260
Posted 7/27/2008 11:49:24 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 4/15/2009 5:31:31 AM
Posts: 24, Visits: 59
But I am getting an another problem now..........Report file can have maximum width 254 and my report can have around 150 columns each with some data. So this limit is exceeding. Using a single query ,can i get the output in a report file for all columns?

Post #12266
Posted 7/28/2008 6:30:00 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 9/14/2009 1:19:29 PM
Posts: 36, Visits: 121
HI

COUNT TOTAL LENGTH OF EACH COLUMN AND MENTION DATATYPE IN THE EACH COLUMN.

MENTION TOTAL LENGTH IN SET WIDTH COMMNAD .




SHEEBA
Post #12292
Posted 7/28/2008 6:56:18 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 4/15/2009 5:31:31 AM
Posts: 24, Visits: 59
thanks but the problem is limitation on width of bteq................

Actually range of bteq width is 20 to 254.................
Post #12294
Posted 8/13/2009 3:27:05 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 8/13/2009 3:26:31 PM
Posts: 4, Visits: 10
Hello,
I am encountering the same issue, did anyone find a solution for this?

Thanks in advanced...
Post #16527
Posted 8/13/2009 5:42:30 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Yesterday @ 3:55:54 AM
Posts: 111, Visits: 263
You cannot overcome the restriction on an Export Report.

There are two answers - use a Foldline to get the output on multiple lines. You can then put them back together using Perl or sed.
Or Export Data - you then have to format the columns yourself - converting numbers to characters and varchars to fixed width chars.
Post #16529
Posted 8/24/2009 7:19:10 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 8/24/2009 7:41:51 AM
Posts: 12, Visits: 55
As per description in manual (V2R5) it says width range is 254, for V2R6.2 onwards it supports higher width
I have used .set width 1000; and is working fine for me.


Regards

Ankit
Post #16641
Posted 8/25/2009 1:10:28 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 10/22/2009 1:29:06 AM
Posts: 36, Visits: 182
Hi,

please check the version of teradat you are using. Check the manual. Bteq older than V2R6 limits to 254 as far as I remember.

Thanks and regards,
Raja


Teradata_cert_Oracle_cert
Post #16650
« 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 11:38am

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