Call an SQL script from Teradata API

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
r.julia
Participant
Posts: 23
Joined: Tue Jan 24, 2006 8:04 am

Call an SQL script from Teradata API

Post by r.julia »

Hi All,

Is it possible to call an .sql script containing the Select statement (to read fromDB) in a Teradata API stage? I mean instead of typing the SQL statement in the SQL tab in Teradata API. Likewise, would it be possible to do the same if I were to load into Teradata(insert SQL file)

Thank you.
Julia
Datastage is pretty interesting
JoshGeorge
Participant
Posts: 612
Joined: Thu May 03, 2007 4:59 am
Location: Melbourne

Post by JoshGeorge »

Firstly Teradata API stage does not call any teradata utility. It submits whatever ANSI SQL statements you define exactly as you define them on a per-incoming row basis, with a COMMIT sent after each "Transaction Size" of rows.
Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
Post Reply