Hi All, I have a file. i need to fetch the records between
first and last records by using transform stage.

EX:-

Source:
EMPNO EMPNAME
4567 shree
6999 Ram
3265 Venkat
2655 Abhi
3665 Vamsi
5852 Amit
3256 Sagar
3265 Vishnu

Target:

EMPNO EMPNAME
6999 Ram
3265 Venkat
2655 Abhi
3665 Vamsi
5852 Amit
3256 Sagar

I dont wan't to Shree and vishnu records.we can fetch
another way also but How can I write the function in
transform stage?

Answer Posted / reddymkl.dwh

If data is fetching from SeqFile, we can do this way also

Use Filter Command

Sed '1d;$d' FileName
It will delete frist and last records.

U will get answer, Plz correct me if am wrong....

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which commands are used to import and export the datastage jobs?

1173


How can we improve performance of data stage jobs?

807


Hi All , in PX Job I have passed 4 Parameters and when i run the same job in sequence i dont want to use those parameters , is this possible if yes then how

1348


What is developer responsibilities in UAT (user acceptance testing and Post implementation phase?

1878


Why fact table is in normal form?

909


What is Ad-Hoc access? What is the difference between Managed Query and Ad-Hoc access?

2762


What is the purpose of interprocessor stage in server jobs?

1974


Can you explain link buffering?

938


How to manage date conversion in Datastage?

850


table actions available in oracle connector?

1373


In work load management there are three options of Low priority, Medium priority and High Priority Jobs which can be used for resource management. why this feature is developed when there is already jobs prescheduled by scheduler or autosys. what will be the use of workload management then?

1270


What are the main differences you have observed between 7.x and 8.x version of datastage?

849


How do you reject records in a transformer?

862


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

1842


What is the difference between operational data stage (ods) and data warehouse?

977