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 |
How will you load you daily/monthly jobs datas in to Fact and Dimension table using datastage.
is it possible to access the same job by two users at a time in DataStage?
What is ds designer?
What is the difference between Datastage 7.5 and 7.0?
What is difference between server jobs & parallel jobs?
where we use column generator stage in real time scenario?
1)How to do error handling in datastage? 2)Did sequential stage accepts .xl files ,xml? znd how?
how do you pass parameters in a script?
tell me 5 situations when we r using oracle db stages like orecle connector, oracle enterprise
Is it possible to query a hash file?
if ename='subbu' while running job the job should be abort how come?
I have a source like file it have Number of records and i want to load without first and last records in target?Datastage?