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...


We have file having country_name customer_name.For exp
London Ram
Bangalore Rohit
London Shyam
Bangalore Abhinav
In output we need 2 files one file for london and second file for Bangalore.How to acheve this?

Answers were Sorted based on User's Feedback



We have file having country_name customer_name.For exp London Ram Bangalore Rohit London Shyam B..

Answer / subramanian

Set Count Parameter in Reformat to 2 to create 2 output ports.
Use Output_index parameter in Reformat Component to direct the record with city field having 'London' to one of the port .

Another condition checking city field for 'value 'Bangalore' and direct it to second out port.

count parameter set to 2.

if (field_1 == "London") 0
else
1

Is This Answer Correct ?    20 Yes 2 No

We have file having country_name customer_name.For exp London Ram Bangalore Rohit London Shyam B..

Answer / keerthika

We can use Partition By expression to partition the data based on the Value in input data

Is This Answer Correct ?    7 Yes 0 No

We have file having country_name customer_name.For exp London Ram Bangalore Rohit London Shyam B..

Answer / devendra majhi

We can use "Write Multiple Files" component for this.
assign filename field with whatever expression you like and create file dynamically.
But select "oerwritte" option as false in that component

Is This Answer Correct ?    4 Yes 1 No

We have file having country_name customer_name.For exp London Ram Bangalore Rohit London Shyam B..

Answer / ritika

Thanks Subramaniam....but I want the result as generic. In this you are assuming only two cities that is London and Bangalore but it can be any number of cities, today it is coming only london and Bangalore later it can come as Delhi, Chennai and Bangalore. In this way we have to create separate output file for each city.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More Ab Initio Interview Questions

wt is meant by repartioning in howmany ways it can be done.

2 Answers  


Do we really work with ACTUALDATA in development phase.

4 Answers  


Within a cursor, how would you update fields on the row just fetched?

0 Answers  


What is rollup component?

0 Answers  


When we should use 'jobid' for commit table (Output table component??

1 Answers   HCL,


What does dependency analysis mean in Ab Initio?

5 Answers   Syntel,


What is EME?What is GDE?What is Co-operating system?What is the link between all these?Please explain elaborately.

1 Answers  


What are the fundamental blocks of co> operating system of ab initio?

0 Answers  


Suppose we assign you a new project. What would be your initial point and the key steps that you follow?

0 Answers  


46.How you can create cross joined output using join component ? 47.What is the default layout of watcher files ? How to use in abinitio graph? 48.Why you get 'too many open files' error ? How to use in abinitio graph? 49.What is the significance of vnode folder under AB_WORK_DIR ? How to use in abinitio graph? 50, What is the significance AB_AIR_BRANCH? How to use in abinitio graph? 51. How can you select only unique records from a set of records ? How to use in abinitio graph? 52. How next_in_sequence work in parallel layout ? How to use in abinitio graph? 53. Why you want to set a modest number in limit ? How to use in abinitio graph? 54. How you can encrypt a password and use it in dbc file? How to use in abinitio graph? 55. Which function you should be using if you do not want to process non printable char from a feed file ? How to use in abinitio graph? 56. How you can run a component for certain conditions ? How to use in abinitio graph? 56. What is catalog and when you should use it ? How to use in abinitio graph? 57. How you can use reformat as a router ? How to use in abinitio graph? 58. How many process gets created for a n-way parallel component ? How to use in abinitio graph? 59. Why delimited DMLs take more time to process than fixed length DMLs? How to use in abinitio graph? 60. How can you select only first and last record from a file without using next_in_sequence? How to use in abinitio graph? 61.Why you should always keep largest input as driving input for Join ? How to use in abinitio graph? 62. What a catalog file contains ? How to use in abinitio graph? 63. What Is private project and public project ? How to use in abinitio graph? 64. Why you should not use checkpoint after replicate ? How

0 Answers   Accenture, Mind Tree,


In Join component which record will go to unused port and which will go to reject port ?

3 Answers   JPMorgan Chase,


What is air-project parameter ?

0 Answers  


Categories