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 / subhash
In the transformer stage's link constraints:
write below constraint
@INROWNUM <> 1 And @INROWNUM <> LastRow()
then you will get the desired out put.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is difference between server jobs & parallel jobs?
What is a folder? Difference types of stages?
To see hidden files in LINIX?
What is the use of datastage director?
how can we validate the flat files using the date in the header and number of records in the flat file? Using both conditions at a time.
Define project in datastage?
What is ds designer?
What are the areas of application?
How we can covert server job to a parallel job?
How to convert RGB Value to Hexadecimal values in datastage?
What are the different options associated with dsjob command?
How and where you used hash file?
What are constraints and derivations?
What is oci?
How do y read Sequential file from job control?