how will i can implement Insert a new record (if not present in Input file),Update the record (if present in input) a csv file in Abinitio



how will i can implement Insert a new record (if not present in Input file),Update the record (if pr..

Answer / Kavita Tiwari

In Ab Initio, you can use DataFlow Manager (DFM) to insert or update records in a CSV file. Here's an example process:
1. Load your input CSV file into a variable using the 'Read Text File' step.
2. Sort the data based on a unique identifier column (such as primary key) using the 'Sort' step.
3. Use the 'Merge' step to compare the sorted data with an output file or another variable containing the desired records.
4. Implement conditional statements within the merge process to decide whether to insert new records or update existing ones based on the unique identifier.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ab Initio Interview Questions

Why might the optimizer use a table scan when an index is available?

1 Answers  


what is difference between chk point n phase.Say im loading a file (containig 1 lakh records) and my graph fails after loading 50,000th record.What is the advantage of using check point in this case. Will i be able to start from 51000th record.

1 Answers   IBM,


What is the diff between abinitiorc and .abinitiorc files ?

1 Answers   TCL,


What is use of creating a save files? How to use in abinitio graph?

1 Answers   Cognizant, IBM, Intellego, TCL,


Have you worked with packages?

1 Answers  


What is the best way of creating huge test feeds ? How to use in abinitio graph?

1 Answers   IBM, TCL,


Difference between Force_error & Force_abort?

2 Answers   Wipro,


What is data mapping and data modelling?

1 Answers  


What are the kinds of layouts does ab initio supports?

1 Answers  


What is the ab initio business rules environment (bre)?

1 Answers  


Given input file with single column having 1 2 2 4 3 .. Required output 1 2 2 4 4 4 4 3 3 3.. How?

1 Answers  


What are the differences between informatica and abinitio?

1 Answers  


Categories