how to find no.of records in sequntial file itself?

Answers were Sorted based on User's Feedback



how to find no.of records in sequntial file itself?..

Answer / varma

Option1: You can use wc –l <<filename>> | awk '{print $1}'
in “Execute command” stage to get the row count.

Option2:-Read the sequential file and after the stage
finishes successfully, you can get the link count using
DSGetLinkInfo(DSJ.ME,
DSJ.ME, “Yourlinkname”,DSJ.LINKROWCOUNT)

Is This Answer Correct ?    6 Yes 0 No

how to find no.of records in sequntial file itself?..

Answer / mmmm

Hi Simha..,

If u know then only give proper ans otherwise Shutup ur
asloe.Our AllInterveiw Community give one golden award for
u.its a Simha "Gaaandu"

Is This Answer Correct ?    15 Yes 14 No

how to find no.of records in sequntial file itself?..

Answer / mandru naganji

in seq file set row number column and it will generate data like 1 to n depending onm num of rows.use sort satge desc order get last record.u will get count

Is This Answer Correct ?    1 Yes 0 No

how to find no.of records in sequntial file itself?..

Answer / simha

hi,

seq file --> go for options --> select row count.
then automatically updated.

Is This Answer Correct ?    5 Yes 13 No

Post New Answer

More Data Stage Interview Questions

SEQUENTIAL FILE I HAVE ONE RECORD,I WANT 100 RECORDS IN TARGET?HOW CAN WE DO THAT?PLS EXPLAIN ME AND WHAT STAGES ARE THERE?WHAT LOGIC?

1 Answers   TCS,


where we use config file as parameter ?

1 Answers   IBM,


Hi friends, I am new to datastage, i have one query in datastage any one you please give reply to my post. I have a workbook (excel sheet) named as eg: xxxx, in that i have two tables emp(eid, ename, salary, deptno) and dep(deptno, name, state). in my source i have ODBC enterprise stage read the emp table and dept table join the two table and write the dept no 10(eid,ename,salary,name,state) values in target(). Thanks, Badari

0 Answers  


How do u convert the columns to rows in datastage?

0 Answers  


hi, how would i run job1 then job 3 , then job2 in a sequence of job1 ,job2,job3. Thanks sunitha

6 Answers   CTS,






How to get max salary of an organization using data stage stages........... can any body help me plz.......

7 Answers   Cap Gemini,


How to convert table data into xml file using xml output stage? please explain step by step;

2 Answers   IBM,


how do u capture duplicates through sort & transformer

4 Answers  


How and where you used hash file?

0 Answers  


How to display errors in datastage?

1 Answers   TCS,


How to perform incremental load in datastage?

0 Answers  


What are the some differences between 7.x and 8.x version of datastage?

0 Answers  


Categories