Hi guys,

In sequencer job,
we have 3 sources, in that 1st source have some records,
Here requirement is 1st source records are 100 then only run
the job otherwise total job will abort...
How to calculate this. please design the job.

Thanks.



Hi guys, In sequencer job, we have 3 sources, in that 1st source have some records, Here requi..

Answer / anil

Hi,

We can do it with one seq job and one parallel job

First create parallel job (p1) that calculates aggregate count. If aggregate count is less than 100 then abort the parallel job

Paralled Job Design(P1)

1. Take the data from source.
2. Add a column generator with column name as Temp and its value as A
3. Add aggregrator stage, where group by column is Temp and calculation is count rows. So after aggregation, count will be calculated and stored in Total Count column.
4. In the transformer, add a constraint for output link to a peak stage saying totalcount < 100 and abort after 1 row.

SO if count is greater than 100, parallel job (P1) is successful, Else failed

Sequence Job

1. Add parallel job(p1) to the sequence and add exception handler and terminator activity stage.

2. After P1 you can create whatever sources you want to as a each parallel job.

3. Add automatically handle failed activities in the sequence job properties

Now if P1 fails, sequence fails else rest will run.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Data Stage Interview Questions

what is the use of DSattchJob?DetachJob? where can we find it?

0 Answers   IBM,


hi, how would i run job1 then job 3 , then job2 in a sequence of job1 ,job2,job3. Thanks sunitha

6 Answers   CTS,


DataStage Scenario based Interview Questions

1 Answers  


in oracle target stage when we use load option and when we use upsert option?

0 Answers  


Notification Activity

0 Answers   CTS,






how to define satge variables in transformer stage

2 Answers  


How to read multiple files at different directories using a single Sequential File stage in DS Enterprise Edition

6 Answers   TCS,


I have file with empid,empname and I want to load these two fields along with sal in my target 1)salary must be same for all the records 2)I want pass the salary at run time

7 Answers   TCS,


wt is the difference between swith and filter stage

6 Answers   IBM,


Hi frnds, my scenario is like i'm having a record 1234"1323£3434%343434^23232!1212$23232 in the above record all the special characters must be removed.how can we do it in datastage 8.0.1.can any one please ans this? thanx in advance

2 Answers   IBM,


Please explain me the difference between 3 types of slowly changing dimension in datawarehousing?

3 Answers   TCS,


How can we improve performance of data stage jobs?

0 Answers  


Categories