One file contains header,body,trailer records and header in
a single row as well as trailer too.How to segregate these
header,trailer and body records and once it gets
segregated,i want to make the body data in reverse i.e if i
have 10 body records,the 10th record should be the first
record,9th record should be the second line,etc..

Answer Posted / avijit

Filter the header and trailer records by using FBE or you can use dedupsort.
i/p-->Dedupsort(Keep 1st)-->Dedupsort(Keep last)-->Reformat(out.Rank::next_in_sequence())-->Sort(Rank,Desc)-->o/p

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to process records in batches like 1-20 records in first execution and 21-40 records in second run.. so on

482


What are “business rules” in ab initio business rules environment (bre)?

1437


What is the importance of eme in abinitio?

685


What is data encoding?

747


What are the operations that support avoiding duplicate record?

944






What is conduct>it?

640


Do you think effective communication is necessary for data processing?

739


What is common among data validity and data integrity?

608


Explain what is sort component in abinitio?

672


Input - Name|city |startyear Rahul |Mumbai|2010 Rahul|kolkata|2014 Rahul|Delhi|2018 Output should be- Name|city |startyear|endyear Rahul |Mumbai|2010|2014 Rahul|kolkata|2014|2018 Rahul|Delhi|2018|9999

473


difference between paramaters inputparameters,Local parameters, Formal parameters, Sand box parameters,Project parameters and export parameter?

2318


Mention what dedup-component and replicate component does?

627


What is sandbox?

728


Explain about ab initio’s dependency analysis?

649


How to add default rules in transformer?

697