Can any body give me the clear explanation about how to
separate header,trailer and body records in Ab Initio?

Answer Posted / anvesh vuppu

You will be having an indicator field(sth like
record_indicator which will identify whether the record is
a header or trailer or detailed.) in your DML. So, use a
partion by expression component in your graph and based on
the indicator values, separate the records.

i.e. give the expression in the PBE component sth like:

if(record_indicator == "H") 0 else if(record_indicator
== "T") 1 else 2;

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to add default rules in the transformer?

726


What will be the output when a file with 0 records is connected as input to a reformat and an output file? Note that in reformat we have assigned hardcoded values to output columns.

518


Have you used the rollup component? Describe how?

633


Can you explain the performance and scalability of co> operating system?

638


What is the max core of a component?

625






Mention what dedup-component and replicate component does?

618


What does it mean by the term 'sort component'?

678


What are the steps to create a repository in ab initio?

756


Why do you think data processing is important?

623


Explain data flow graph with an example?

634


What are the types of data processing you are familiar with?

704


Do you think effective communication is necessary for data processing?

732


I installed AbInito in my PC.In components there is no "select" component.How can i get that component?and How we can create user defined components?

1613


What are the functions of the replicate and dedup component?

628


Why creation of temporary files depends on the value of MAX CORE ? How to use in abinitio graph? 10. What is the diff between abinitiorc and .abinitiorc files ? How to use in abinitio graph? 11. What is the use of allocate()? How to use in abinitio graph? 12. What is use of branch in EME ? 13. How you can break a lock in EME ? How can you lock a file so that only no one other than EME admin can break it ? How to use in abinitio graph? 14. When you should be using ablocal() ? How you can use ablocal_expr? How to use in abinitio graph? 15. Why you should not keep the layout as 'default' for input table component ? How to use in abinitio graph? 16. What is dynamic lookup ? How to use in abinitio graph? 17. What is dependent parameter ? How to use in abinitio graph? 18. What is BRE ? (Business Rule Environment - This is a recent addition in abinitio package) How to use in abinitio graph? 19.What is output index ? How to use in abinitio graph? 20. How you can track the records those are not getting selected from ‘select’ in reformat component ? How to use in abinitio graph? 21. Can we have more than one launcher process for a particular graph ? How about agent ? How to use in abinitio graph? 22. There are lot of new fuctions added in 2.15 , you can ask about them ? How to use in abinitio graph? 23. How can you run multiple instances of a graph in parallel? How to use

3553