5) A file contains 10 (1-10) I want trgt like
Trgt 1 trgt 2 trgt 3
1 2 3
4 5 6
7 8 9
10
Answer Posted / venkatesh
the flow will be like this
source---->transformer----->t1
--------->t2
----------->t3
in transformer create a stage variable which holds the value
of mod(id,3) for instance it will be like this
mod(ds.link2.inputrow id,3) |stgvar
______________________________________________|__________
|
use this stage variable in constraint as
ds.link4 stgvar=1
ds.link5 stgvar=2
ds.link6 stgvar=0
connect the input to the output in transformer
u will get the desired output
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
how to use self join using datastage ? can u tell me using stage how can we implemnet the self join
What is the method of removing duplicates, without the remove duplicate stage?
How one source columns or rows to be loaded in to two different tables?
Can you explain kafka connector?
What are sequencers?
Does datastage support slowly changing dimensions ?
What are the steps needed to create a simple basic datastage job?
How to reverse the string using unix?
Hi, what is use of Macros,functions and Routines..? At what situation you are used. If you know the answer please explain it. Thanks.
Give an idea of system variables.
Have you used Unstructured data?
What is the roundrobin collector?
Why do we use link partitioner and link collector in datastage?
What all are the different way to run a job?
Can you implement SCD2 using join, transformer and funnel stage?