Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How to clean the datastage repository?

1182


What a datastage macro?

1104


table actions available in oracle connector?

1658


How do you start developing a datastage project?

1160


What is the difference between odbc and drs stage?

1140


What is the method of removing duplicates, without the remove duplicate stage?

1083


Differentiate between Join, Merge and Lookup stage?

1146


How can we perform the 2nd time extraction of client database without accepting the data which is already loaded in first time extraction?

2491


What is use Array size in datastage

1827


Hi, what is use of Macros,functions and Routines..? At what situation you are used. If you know the answer please explain it. Thanks.

2118


what is 'reconsideration error' and how can i respond to this error and how to debug this

2675


How do y read Sequential file from job control?

16082


In a batch if a job fails in between and you want to restart the batch from that particular job and not from the scratch then what will you do?

1100


How many areas for files does datastage have?

1218


What is usage analysis in datastage?

1365