how to closeing records after 10,000 records come?

Answer Posted / subbuchamala

-->If the Source is File:
"Read First Rows"=10000 --> Only read the first specified number of rows from each file.
"Filter"= sed -n '1,10000 P' or head -10000: we can use UNIX commands to filter the data.

-->If source is DB:
Oracle: where rownum<=10000
DB2: sample 10000 row only
Teradata: fetch first 10000 rows only

-->In Transformer:
We can use @INROWNUM<=10000 system variable
We can use Stage variables and count the values and in the contraints part use Stage_Var<=10000

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between Join, Merge and Lookup stage?

647


what are .ctl(control files) files ? how the dataset stage have better performance by this files?

2182


Describe the main features of datastage?

660


How do you register plug-ins?

603


How to read multiple files using a single datastage job if files have the same metadata?

740






Hi everyone,I have kept a project Sales And Distribution for a pharmaceutical company.can anybody explain one complex business rule that we had in our project and how did you accomplish it using DS?

1763


what is ds administrator used for?

723


What are iconv and oconv?

777


Can you filter data in hashed file?

3348


Define project in datastage?

668


How to create a file using vi editor? 2)how to delete a file in vi editor? 3)How to connect the server datastage to unix? what r the command lines we r using? 4)30 jobs r runnig in unix i want to find out my job. how to do this? give me command?

2053


Hi, what is use of Macros,functions and Routines..? At what situation you are used. If you know the answer please explain it. Thanks.

1620


Define ds designer?

768


A signal has a wavelength of 1 micro min in air.how far can the front of the wave travel during 1000periods?

2032


How can we perform the 2nd time extraction of client database without accepting the data which is already loaded in first time extraction?

1702