How to exclude first and last lines while reading data into a sequential file(having some 1000 records).I guess probably by using unix filter option but not sure which to use

Answer Posted / msbharathi

In sequential file stage use the filter in the options

In filter use sed '1d;$d'

You can use sed '<start>,<end>d' to delete particular rows and use sed -n '<start>,<end>p' to keep particular rows

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

To see hidden files in LINIX?

941


Different ways a project can be moved to production ?...example ….export-import and Version control.

1929


Define data aggregation?

662


How a source file is populated?

609


What is the purpose of pivot stage?

602






what is 'reconsideration error' and how can i respond to this error and how to debug this

2115


what is flow of project?

1557


what is the difference between == and eq in UNIX shell scripting?

972


How we can covert server job to a parallel job?

593


root tree will find which is server job and which is parallel job?

1443


WAT TYPE OF PL/SQL QUERRYS USED IN DATASTAGE

3263


What is datastage?

647


How do you import and export data into datastage?

697


What is ibm datastage?

603


8000 jobs r there i given commit, suddenly job will abort? what happens? 2)diff b/t transformer stage & filter stage? 3)how to load the data in the source?

1780