Before/After sql

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
madhonrougeuri
Participant
Posts: 24
Joined: Sun Jan 23, 2005 3:36 pm

Before/After sql

Post by madhonrougeuri »

Hi,
Could any body tell me in what case is before/after sql used in OCI stage..any examples?

Thanks.
denzilsyb
Participant
Posts: 186
Joined: Mon Sep 22, 2003 7:38 am
Location: South Africa
Contact:

Post by denzilsyb »

I do think there are many applications of the before/after subs, but one could be to check the value of a column in another table and depending on that value something could happen to the input column... far fetched though...

I do not think before and after for a stage is the best thing because every row is evaluated against the before/after routine, so the I/Os could easily becme tedious and slow down the process.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Re: Before/After sql

Post by kcbland »

madhonrougeuri wrote:Hi,
Could any body tell me in what case is before/after sql used in OCI stage..any examples?

Thanks.
For Oracle, you could find uses such as:

Code: Select all

ALTER SESSION DISABLE PARALLEL QUERY;
Or

Code: Select all

ALTER SESSION ENABLE PARALLEL DML;
Or

Code: Select all

Grants, Drops, Creates, Stored Procs, etc
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
denzilsyb
Participant
Posts: 186
Joined: Mon Sep 22, 2003 7:38 am
Location: South Africa
Contact:

Re: Before/After sql

Post by denzilsyb »

kcbland wrote:a double gargle blaster!
thats one helluva drink KC!
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
madhonrougeuri
Participant
Posts: 24
Joined: Sun Jan 23, 2005 3:36 pm

Post by madhonrougeuri »

Thanks...
sck
Participant
Posts: 18
Joined: Thu Mar 18, 2004 2:58 pm

Post by sck »

Suppose if no rows were processed that is the number of rows to the input link (lets take the case of error processing then) will the after SQL still get executed???

Thanks
SCK
wnogalski
Charter Member
Charter Member
Posts: 54
Joined: Thu Jan 06, 2005 10:49 am
Location: Warsaw

Post by wnogalski »

Yes.
Regards,
Wojciech Nogalski
Post Reply