I have a few records all are same structures data, I want to
store data in multiple targets how?

Answer Posted / geetha

Use transformer stage and modulus function. Lets say we have 4 target tables and set constraint to each target links as below.

Link1--> mod(@INROWNUM,4)=0
Link2--> mod(@INROWNUM,4)=1
Link3--> mod(@INROWNUM,4)=2
Link4--> mod(@INROWNUM,4)=3

we can also use filter stage and where clause to split the records

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the main features of datastage?

662


Can you implement SCD2 using join, transformer and funnel stage?

1082


Difference between sequential file and data set?

641


how can we validate the flat files using the date in the header and number of records in the flat file? Using both conditions at a time.

2726


Define oconv () and iconv () functions in datastage?

877






sed,awk,head

966


If you want to use the same piece of code in different jobs, how will you achieve it?

632


How to manage date conversion in Datastage?

638


Whats difference betweeen operational data stage (ods) and data warehouse?

667


How the ipc stage work?

672


How to RD using transformer?

857


In Datastage, how you can fix the truncated data error?

640


How do you remove duplicate values in datastage?

625


What is "fatal error/rdbms code 3996" error?

663


Differentiate between Join, Merge and Lookup stage?

645