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

Explain usage analysis in datastage?

1181


What is developer responsibilities in UAT (user acceptance testing and Post implementation phase?

2117


how to add a new records into source?

2010


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

2637


Define ds designer?

1289


What can we do with datastage director?

1253


what are .ctl(control files) files ? how the dataset stage have better performance by this files?

2822


Can you explain kafka connector?

1323


What is oci?

1319


how to implement scd2 in datastage 7.5 with lookup stage

5621


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

2279


How do you generate sequence number in datastage?

1107


Define Merge?

1325


Is it possible to query a hash file?

2023


Triggers,VIEW,Procedures

1230