how to closeing records after 10,000 records come?

Answers were Sorted based on User's Feedback



how to closeing records after 10,000 records come?..

Answer / 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

how to closeing records after 10,000 records come?..

Answer / amulya kumar panda

In transformer stage has system variable and select
@INROWNUM <10000

Is This Answer Correct ?    0 Yes 0 No

how to closeing records after 10,000 records come?..

Answer / guest

while before running the job it ask stop incoming rows and
warnings thete we to mention number of records

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More Data Stage Interview Questions

how many datamarts we will use in real time project and when will use the datamart?pls send the replay early

2 Answers   Tech Mahindra,


What is the difference between Link collector and Funnel Stages?

1 Answers  


how can you generate sequence number using only the sequential file stage?

3 Answers   TIAA CREF,


i have 3 diffrent tables. 1) US rate data 2)CANADA rate data and 3)MEXICO rate data. All 3 tables have 6 collumns each. 4 collumns are commun to all tables and 2 are diffrent. Now at target i want single table say Country rate which will have (4+2+2+2+1 flag) 11 collumns. I will add a flag collumn which will indicate country and will put nullable collumns which are not common to other. How i can implement this in datastage?

1 Answers   ABC,


i have a scenario with i/p as ID,salary with values 1,1000 2,2000 and 3,4000 i need an extra column in the o/p named amount with values 2000,4000 and NULL. how can i get it?

2 Answers   L&T,






With out using Funnel Stage, how to populate the data from different sources to single target

12 Answers   Wipro,


on how many columns we can perform aggregation in the aggregator stage?

2 Answers   Reliance,


What are the various kinds of containers available in datastage?

0 Answers  


What are routines in datastage?

0 Answers  


WHAT IS FORCE COMPILE?

3 Answers   FIS, HCL, Polaris,


5) A file contains 10 (1-10) I want trgt like Trgt 1 trgt 2 trgt 3 1 2 3 4 5 6 7 8 9 10

2 Answers  


How can we achive parallelism

1 Answers   CTS,


Categories