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?
Answers were Sorted based on User's Feedback
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 |
1) In a dataset how to delete a single row? 2) i have 50 rows , i want to display 5-7 records only? How to write the sql query? 3)i have 40 rows,i want to display last row? write sql query?
HOW CAN WE SEE THE DATA IN DATASET?
12 Answers IBM, TCS,
what are the devoleper roles in real time? plz tell i am new to datastage....
AGGREGATOR default datatype
WHAT ARE THE COMMON ERRORS IN DATA STAGE?
Can anybody tell me in detail any complex datastage job? I have worked only in direct load and full refresh jobs.But in all interviews this question arises
Explain how a source file is populated?
How many partitions does a node can have? Some body explain me clearly about the partitions and the nodes?
What are the primary usages of datastage tool?
explain about completely flow of sequencers technicaly,without using example??explain about lookup,nullhandling?
Parallel job contains more than 20 stages. I want to find out which stage is more performance incentive.
what is ds administrator used for?