I have Seq file, I don't want 10, 11th(or any two records like 20, 30th records ) records in the output

Answer Posted / ankit gosain

Hi,

You can block any specified record(s) from the source seq.
file with the help of a Transformer Stage.

Source Seq. File ----> Transformer ---->Target Seq. File

Now, in Transformer stage create a Stage Variable (say
row_num) & initialize it with ZERO.
In it's derivation, just increment it by ONE (i.e.
row_num+1)

Now, Insert a new column in the output & it's derivation,
assign the variable (row_num).

Now, in the contraint tab wirte row_num<>10 OR row_num<>11

If you have some other doubts or queries, you can mail me
on ankitgosain@gmail.com

Cheers,
Ankit :)

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a datastage job?

622


How we can covert server job to a parallel job?

599


What could be a data source system?

579


What is the difference between server job and parallel jobs?

672


There are two file are there .1st file contains 5 records and 2nd file contain 10 records in target they want 50 records.how can achieve this

1807






What is the purpose of interprocessor stage in server jobs?

1727


What is meta stage?

580


Define ds designer?

768


How many types of hash files are there?

612


Can you highlight the main features of ibm infosphere information server?

636


How can we improve performance of data stage jobs?

618


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

1637


Why do we use exception activity in Datastage?

728


What is the purpose of pivot stage?

608


What are some prerequisites for datastage?

617