Hi Every one,

I have a scenario plz suggest me

1)On daily we r getting some huge files data so all files
metadata is same we have to load in to target table how we
can load?

2) One column having 10 records at run time we have to send
5th and 6th record to target at run time how we can send?


Hi plz help me for above scenarios and If any one is having
JobSequence kindly send me one example and the scenario to
my mail ID(nrvdwh@gmail.com)

Answers were Sorted based on User's Feedback



Hi Every one, I have a scenario plz suggest me 1)On daily we r getting some huge files data so..

Answer / vijayreddy

Hi Please find the dfd

seqfile--->T/R--->filter---->ds

in T/R stage u can take one etc column(SEQNO)that u can pass to next stage at same time u can create two stage varibles(sno1,sno2) this stage varibles u can call the filter stage in where class like(SEQNO between #sno1# and #sno2#

& then u can run job .That parameters values run time u can give the recored

Is This Answer Correct ?    0 Yes 0 No

Hi Every one, I have a scenario plz suggest me 1)On daily we r getting some huge files data so..

Answer / akila ramu

Sample stage can be used for this. Sample stage when run in
period mode and N is mentioned, every Nth record from the
input is sent to the output.

For eg., period number=5 and maximum value=20 then 5, 10,
15 and 20th records are alone sent to the output.

Is This Answer Correct ?    1 Yes 1 No

Hi Every one, I have a scenario plz suggest me 1)On daily we r getting some huge files data so..

Answer / ankit gosain

Hi All,

Ans1: In the source sequential file, you can specify the
read method from specific file to file pattern, so that it
can take the file on daily basis.
like:-you are getting the files ALSSM_12122012.dat,
ALSSM_13122012.dat, ALSSM_14122012.dat and so on which is
just appended by the date with file name. for this, you can
specify a file pattern like <path>/ALSSM_*.dat

Ans2: SeqFile--->Transformer--->Tgt
create two parameters of integer type in your job (say Val1
& Val2) &
In transformer stage, define a constraint:
@INROWNUM=Val1 OR @INROWNUM=Val2 (Where @INROWNUM is a
System Variable). Now you can assign the value of Val1 &
Val2 at the run time.

For more queries, mail me on ankitgosain@gmail.com

Cheers,
Ankit :)

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More Data Stage Interview Questions

how to load meta data

2 Answers   IBM,


Can you define merge?

0 Answers  


What is a merge in datastage?

0 Answers  


What is the version control how can i apply this in DataStage can any one tell me the anser

4 Answers   IBM,


how can you generate sequence number using only the sequential file stage?

3 Answers   TIAA CREF,


How do you schedule or monitoring the job?

0 Answers  


Hi friends,Two input files, wants to validate only if the reference data has '0' otherwise no validation should be done..how to do this??

1 Answers   IBM,


Difference between server jobs & parallel jobs?

0 Answers  


How to create environments and call them? What is the use defined variables?

2 Answers   HCL, ME,


What are the components of datastage?

0 Answers  


Hi I am Vijay In my source i've 10 records in a single column.... but i want to split those records into 5 sequential files each seq file contains 2 records.?.... can any body help me?

15 Answers   Scope International,


my soure table is emp having columns sal,deptno in the deptno 10,20,30deptno row are there expected out put is min(sal) of 10th deptno,max(sal) of 20th deptno,mean(sal) of 30th deptno using aggregation stage

4 Answers  


Categories