how can we send even and odd records from a sequential file
to two different targets

Answer Posted / subhash

SeqFile--->Transformer=====>TGTFile1,TGTFile2

1. in SeqFile, add the 'Row Number Column' property and
name it as 'Row_Number'
2. in the Transformer, give the constraint for TGTFile1
link:
'MOD(Row_Number,2)=1'----> all the ODD rows
give the constraint for TGTFile2 link:
'MOD(Row_Number,2)=0'----> all the even rows.


If we use INROWNUM in transformer, then we need to run the
transformer on 'Single' NODE configuration.

Is This Answer Correct ?    18 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between ‘validated ok’ and ‘compiled’ in data stage?

665


What is the flow of loading data into fact & dimensional tables?

587


Differentiate between Symmetric Multiprocessing and Massive Parallel Processing?

616


8000 jobs r there i given commit, suddenly job will abort? what happens? 2)diff b/t transformer stage & filter stage? 3)how to load the data in the source?

1778


What are the areas of application?

656






If we take 2 tables(like emp and dept),we use join stage and how to improve the performance?

1623


what should be ensure to run the sequence job so that if its get aborted in 10th job before 9job should get succeeded?

953


What is staging variable?

622


Name the different sorting methods in datastage.

607


Is it possible to implement parallelism in Mainframe Jobs ? If Yes how ? If no why ?

1778


in oracle target stage when we use load option and when we use upsert option?

1747


Difference between sequential file and data set?

639


Define repository tables in datastage?

699


What is aggtorec restructure operator?

722


how to add a new records into source?

1523