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.

Answer Posted / subhash

I hope this will help you:

--------->T1
|
|
source---->transformer---------- -------->T2
|
|
--------->T3
Transformer:
1.drag source column to all the targets.
2.TARGET T1 constraint in Transformer:
Mod(input column, 9)=1 or Mod(input column, 9)=2 or Mod
(input column, 9)=3.
3.TARGET T2 constraint in Transformer:
Mod(input column, 9)=4 or Mod(input column, 9)=5 or Mod
(input column, 9)=6.
4.TARGET T3 constraint in Transformer:
Mod(input column, 9)=7 or Mod(input column, 9)=8 or Mod
(input column, 9)=0.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are routines in datastage?

795


What is job control?

637


What is the precedence of stage variables,derivations, and constraints?

604


What are the functionalities of link partitioner and link collector?

608


Enlist various types of routines in datastage.

654






how to sort two columns in single job in datastage.

2555


What are the features of datastage flow designer?

648


What could be a data source system?

588


What are stage variables, derivations and constants?

686


How to convert RGB Value to Hexadecimal values in datastage?

3468


Name the third party tools that can be used in datastage?

628


What is a datastage job?

632


Explain the datastage parallel extender (px) or enterprise edition (ee)?

747


What is datastage engine?

735


What steps should be taken to improve Datastage jobs?

652