Pasing a Paramater Value in 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.


Pasing a Paramater Value in BTEQ Expand / Collapse
Author
Message
Posted 8/12/2008 7:48:51 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 8/16/2008 3:31:05 PM
Posts: 2, Visits: 13
Hi,

I am trying to pass on a parameter value into a BTEQ script. The query is to accept parameters and query the paramater and export the result into a Textfile or Table.

Paramaters to be pass onand Resident_ID.

.RUN FILE = 'LOGON.DAT';


SELECT distinct q.Resident_ID
, q.LName
, q.FName
, q.Address

FROM QueryReside AS q

WHERE q.Resident_ID = '¶_number'
AND zip = '&zip'

.LOGOFF;

and I obsolutely have no idea of passing a paramater. Can someone please help out??


Kim
Post #12536
Posted 8/12/2008 8:13:36 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 9/8/2008 7:42:33 AM
Posts: 22, Visits: 53
Hi Kim,

I am not sure , that we can pass runtime parameter in BTEQ utility, But If you really want to do this

Do follow these steps:
----------------------

1) Create the BTEQ Scripts

2) Create the Shell scripts & call those Scripts inside this & use the variables over here

this could help you...... let me know if any issues. Also I will let you know some other Approach for this as soon as poss



Best Regards,

Maran A
Oracle Certified & DW+BI Proffessional
Post #12537
Posted 8/12/2008 8:20:40 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 8/16/2008 3:31:05 PM
Posts: 2, Visits: 13
Hi Maran,

Thanx for the heads-up. Could you please be of assistant, given the below SQL-script, to help create or send a sample Shell script and explain how to go about it.


SELECT distinct q.Resident_ID
, q.LName
, q.FName
, q.Address

FROM QueryReside AS q

WHERE q.Resident_ID = '¶_number'
AND zip = '&zip'



Kim
Post #12538
« Prev Topic | Next Topic »


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


All times are GMT -5:00, Time now is 12:26am

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