How to get the records from SQL server Table through routine

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
chitravallivenkat
Participant
Posts: 106
Joined: Thu Jun 08, 2006 8:51 am

How to get the records from SQL server Table through routine

Post by chitravallivenkat »

Hi to all,
Can anybody tell how to get the records from SQL server table through routines?
if possible, pls send the routine.

then can anybody tell any good documentation for Basic codes (to write a routine) to read and improve my datastage knowledge to write a routine.

Pls help.

Thanks.

Venkat.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Welcome aboard. :D

You need to access SQL Server through the ODBC driver. Problem is, the one you have is not licensed for your use in code, only for use from the ODBC and Dynamic RDBMS stages. You will find that it works for 30 days, then fails with a message telling you to buy a licence from Data Direct.

Given that caveat, you write a routine using BCI functions. Effectively you would be programming using the ODBC API, but in DataStage BASIC. There is a manual downloadable for free from IBM should you wish to pursure this further.

But, and it's a big but, why do you want to write code to do what DataStage can already do? :roll:
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

ray.wurlod wrote:But, and it's a big but, why do you want to write code to do what DataStage can already do?
Just wanted to make sure Ray's Big But was shown to the public. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply