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 / dhirendra

Segregate the header, trailer & body by either using part
by expression component or using filter by exp. Use
next_in_sequence() function to a new column of the data
record. Use sort on descending to sort the data on the
next_in_sequence() column.

Is This Answer Correct ?    17 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between output_index and output_indexes in reformat

755


How can you force the optimizer to use a particular index?

623


Explain the difference between the truncate and delete commands?

613


Mention what is the syntax for m_dump in abinitio?

972


You can ask about different vector functions. How to use in abinitio graph?

5031






What are the different types of parallelism used in abinitio?

622


Explain how abinitio eme is segregated?

945


What is a deadlock and how it occurs?

669


What is sort component in abinitio?

701


Can anyone give me an example of realtime start script in the graph?

679


What is a rollup component?

628


Mention what is a partition and what are the different types of partition components in abinitio?

649


What is is a data flow graph?

677


What are the different types of parallelism in ab initio?

727


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

624