I am running a job with 1000 records.. If the job gots
aborted after loading 400 records into target... In this
case i want to load the records in the target with 401
record... How will we do it??? This scenario is not for
sequence job it's only in the job Ex: Seq file--> Trans-->
Dataset..

Answers were Sorted based on User's Feedback



I am running a job with 1000 records.. If the job gots aborted after loading 400 records into targ..

Answer / sree

by using look-up stage we can get the answer..
there are two tables like 1000 records(source) table and 400
records(target) table.

take the source table as primary table and 400 records table
as reference table to look-up table

reference table
.
.
.
source............. look-up......... target

Is This Answer Correct ?    10 Yes 4 No

I am running a job with 1000 records.. If the job gots aborted after loading 400 records into targ..

Answer / phani kumar

With the help of available Environment variable as
APT_CHECKPOINT_DIR, we can run the job for remaining records.

This is available in Datastage Administrator like.....


With Datastage Administrator - project-wide defaults for
general environment variables, set per project in the
Projects tab under Properties -> General Tab -> Environment
variables.

Here, we can enable the this checkpoint variable. Then, we
can load the remaining records........

Is This Answer Correct ?    6 Yes 3 No

I am running a job with 1000 records.. If the job gots aborted after loading 400 records into targ..

Answer / bharath

in datastage administrator we can enable add check point on failure option we can start from 401 record....

Is This Answer Correct ?    7 Yes 5 No

I am running a job with 1000 records.. If the job gots aborted after loading 400 records into targ..

Answer / shar

ok now we have an reject job with stages like
seq--tx--dataset1 lets say job1

now take job2 (job) dependency from job1 to job2) in that
get the data from seq use tx as input 1 (primary) and dataset2 as secondary (ref) in which we use path of dataset1 file this as second input. now connect these inputs to lookup stage and reject the unmatched records connect the reject link to dataset3 in which file name should be same as dataset1 with update policy = append.



thats it dude.

Is This Answer Correct ?    2 Yes 0 No

I am running a job with 1000 records.. If the job gots aborted after loading 400 records into targ..

Answer / abc

our design: src-->tfm-->data set.
to load the records from 401, just set the option Use Existing(discard records) in data set update action property

Is This Answer Correct ?    1 Yes 0 No

I am running a job with 1000 records.. If the job gots aborted after loading 400 records into targ..

Answer / vinay sharma

1) First take seq file after that take one extra column in
that increment the value one by one and send to target
2) Now store the maximum value of extra column and pass this
value to transform thru HASH file and add in extra column
such as (sno+MAX)
Examlpe
SNO
1
2
3
4
5
6
7
Thera are max value is 7
Now add maxvalue means add 7 in SNO
like that
1+7
2+7
3+7
4+7
5+7
6+7
7+7

Is This Answer Correct ?    2 Yes 3 No

I am running a job with 1000 records.. If the job gots aborted after loading 400 records into targ..

Answer / jagannath karmakar

USING SAVE POINT CAN PREVENT THIS PROBLEM

Is This Answer Correct ?    3 Yes 7 No

I am running a job with 1000 records.. If the job gots aborted after loading 400 records into targ..

Answer / venkat

using an option called cleanup on failure

Is This Answer Correct ?    1 Yes 6 No

I am running a job with 1000 records.. If the job gots aborted after loading 400 records into targ..

Answer / mukteswara rao

by usig
1. job level
2. job sequencing level

Is This Answer Correct ?    1 Yes 8 No

Post New Answer

More Data Stage Interview Questions

col1 123 abc 234 def jkl 768 opq 567 789 but i want two targetss target1 contains only numeric values and target2 contains only alphabet values like trg1 123 234 768 567 789 trg2 abc def jkl opq

9 Answers   Patni,


what is set mapping in datastage??

2 Answers   ADP,


Hi guys, please design job for this, MY INPUT IS COMPANY,LOCATION IBM,CHENNAI IBM,HYDRABAD IBM,PUNE IBM,BANGLOORE TCS,CHENNAI TCS,MUMBAI TCS,BANGLOORE WIPRO,HYDRABAD WIPRO,CHENNAI HSBC,PUNE MY OUTPUT IS COMPANY,LOCATION,COUNT IBM,chennai,hydrabad,pune,banglore,4 TCS,chennai,mumbai,bangloore,3 WIPRO,hydrabad,chennai,2 HSBC,pune,1 Thanks

3 Answers   IBM,


How do you schedule or monitoring the job?

0 Answers  


How you Remove the Dataset in Unix?

5 Answers  






What all are the different way to run a job?

0 Answers  


Hi, My source is oracle(eno,ename,sal,commision,...), my requirement is like this, if there is a null values in commission col i want to keep it as null,and for the remaining first two characters of the value in my target. Plz help me

1 Answers  


how to handle null values in sequential file?

1 Answers   HCL,


Distinguish between informatica & datastage. Which one would you choose and why?

0 Answers  


Source flat file contains src --- 1 2 ' ' ' 18 we had 3 targets T1 T2 T3 -- -- -- 1 4 7 2 5 8 3 6 9 10 13 16 11 14 17 12 15 18 How can i get? **Using only datastage, but not unix or any other. I am expecting the answer soon.. Thanks in advance.

7 Answers  


Have you have ever worked in unix environment and why it is useful in datastage?

0 Answers  


in sequtial file 2 columns avaliable, i want only one column load the target. for this we can do by modify and copy stage. But here when using modify stage (in property drop column1) until it is ok. if target is data set How to view the data. with out using data management. what is the reason for this. if any body know this answer plz tel me. thanks.

1 Answers   IBM,


Categories