when to write Shell Scripts and pl/sql in datastage

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
suri
Participant
Posts: 24
Joined: Tue May 25, 2004 12:17 am
Location: piscataway
Contact:

when to write Shell Scripts and pl/sql in datastage

Post by suri »

Hi,

I want to know where and when to use unix shell scripting and stored procedures in datastage.



Thanks
Suresh
ketfos
Participant
Posts: 562
Joined: Mon May 03, 2004 8:58 pm
Location: san francisco
Contact:

Post by ketfos »

Hi,
You can use Stored Procedures for data manipulation(insert/update/delete) from and to tables.
But you can achieve the similiar functionality in DataStage enviornment itself instead of using the PL/SQL stored procedure (In case of Oracle) and thus avoid PL/SQL statements.

Shell Scripts can be used in before/after routines in job control.

Ketfos
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

A lot of people use shell scripts instead of ftp stages. There are lots of things you can trigger using shell scripts. It is easy to shell out and do sqplus or run some process to extract data from a source that does not use ODBC or some plugin. The flexiblity is great.

Stored procedures maybe easier to implement in "before" sql. You can see that tab within Oracle and other plugins.

If there is some process that you need done before or after a job then shell scripts are useful.
Mamu Kim
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Upgrade to 7.5 and enjoy the benefits of the Stored Procedure Stage. As long as you are on Oracle, that is. Support for other databases 'coming soon'. :wink:
-craig

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