Job runs Longer while reading Sequential File

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
anjan.k
Participant
Posts: 7
Joined: Sat Sep 29, 2007 2:03 am

Job runs Longer while reading Sequential File

Post by anjan.k »

Hi,
I have job running more than one hour which has totally three stages as mentioned below.
Sequential File -> Transformer -> Dataset

It is reading about 12598197 records from the Sequential file and below transformation being done on most of columns in stage variables. It has totally 10 columns.

Code: Select all

If(TrimLeadingTrailing(LkInto_Trns_Validation.STKRM_PULL_Q) <>'' And IsValid("decimal[10,0]", TrimLeadingTrailing(LkInto_Trns_Validation.STKRM_PULL_Q))) Then 1 Else 0
Could you please suggest me if we can reduce run time by any chance?

Thanks!
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Lose the If Then 1 Else 0 - the test expression itself will generate 1 or 0 in any case. Don't evaluate the TrimLeadingTrailing() function twice - pre-load it into a separate stage variable.

Code: Select all

sv1  <--  TrimLeadingTrailing(LkInto_Trns_Validation.STKRM_PULL_Q
sv2  <--  sv1 > "" And IsValid("decimal[10,0]",sv1)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply