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
How you Implemented SCD Type 1 & Type 2 in your project?
What is active and passive stage?
whom do you report?
how to abort the job its matain duplicates?
What are the steps needed to create a simple basic datastage job?
What is a quality stage in datastage tool?
What is staging variable?
How to manage date conversion in Datastage?
Give an idea of system variables.
Define Data Stage?
how to connect source to db?generally what r stages u used? how to find the data is having delimiter format?
Can you implement SCD2 using join, transformer and funnel stage?
What a datastage macro?
What are the different common services in datastage?
What is oci?