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

Define orabulk and bcp stages?

678


What is quality stage?

570


Difference between server jobs & parallel jobs?

648


WAT TYPE OF PL/SQL QUERRYS USED IN DATASTAGE

3263


Can you explain kafka connector?

775






What are the functionalities of link partitioner?

616


Nls stands for what in datastage?

726


What is the use of hoursfromtime() function in transformer stage in datastage?

582


What are some different alternative commands associated with "dsjob"?

649


Why fact table is in normal form?

673


What are data elements?

657


CHANGE CAPTURE

891


How to reverse the string using SQL?

889


What is aggtorec restructure operator?

722


Hi, what is use of Macros,functions and Routines..? At what situation you are used. If you know the answer please explain it. Thanks.

1615