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
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 |
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 |
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 |
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 |
In Join component which record will go to unused port and which will go to reject port ?
i have a scenario where i need to change the value of a sort order in my sort component whether ascending or descending depend on some input value... e.g if input_val = A then sort order should be ascending else descending I have to use PDL in this... Can you please tell me where do i have to make this change and how ?
Runtime behavior of Normalize and Reformat
)what is wrapper script?where it is going to execute and why we go for wrapper?
Which Ab initio version has Hadoop connector ? and what is the latest GDE version available ?
When using multiple dml statements to perform a single unit of work, is it preferable to use implicit or explicit transactions, and why?
What is conduct>it?
what is hash file in abinitio? how will it read in abinitio? in hash file the data files r combine (file1.dat,file2.dat,file3.dat......etc) how will it divide?
Give one reason when you need to consider multiple data processing?
Explain how you can run a graph infinitely in ab initio?
What is local and formal parameter?
What is the difference between reformat and redefine format?