Before job 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
rajeev_prabhuat
Participant
Posts: 136
Joined: Wed Sep 29, 2004 5:56 am
Location: Chennai
Contact:

Before job Routine

Post by rajeev_prabhuat »

Hi,

I want to write an update command on a table in before job routine in ODBC Stage, is this possible. Like in Oracle Enterperise stage there is Before and after SQL queries.

Regards,
Rajeev Prabhu
WoMaWil
Participant
Posts: 482
Joined: Thu Mar 13, 2003 7:17 am
Location: Amsterdam

Post by WoMaWil »

In the actual for DataStage licencend ODBC-Driver a routine including a ODBC-call doesn't work due to licence. So your only chace is a "before-Job"-Job.

Wolfgang
jreddy
Premium Member
Premium Member
Posts: 202
Joined: Tue Feb 03, 2004 5:09 pm

Post by jreddy »

If there is a transformer stage before this ODBC stage, then you could wrap up this update SQL in a shell script and call it as an after-stage routine to the transformer stage..
this way it gets done before your SQL in your ODBC starts execution
rajeev_prabhuat
Participant
Posts: 136
Joined: Wed Sep 29, 2004 5:56 am
Location: Chennai
Contact:

Post by rajeev_prabhuat »

Hi,

Thank you, what you told is correct but I have a doubt in this, if you give it in the after stage routine will it execute for reach row ?.

Regards,
Rajeev Prabhu
jreddy wrote:If there is a transformer stage before this ODBC stage, then you could wrap up this update SQL in a shell script and call it as an after-stage routine to the transformer stage..
this way it gets done before your SQL in your ODBC starts execution
vmcburney
Participant
Posts: 3593
Joined: Thu Jan 23, 2003 5:25 pm
Location: Australia, Melbourne
Contact:

Post by vmcburney »

Switch over to the Dynamic RDBMS stage, it supports ODBC connections and it has Before and After SQL tabs. Much easier then trying to run it through a before-job routine. It's also got a "Treat errors as non-fatal" in case your statement does not work but you don't want it to abort the job.
Post Reply