How to count the rows ?parallel jobs.

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
ketanshah123
Participant
Posts: 88
Joined: Wed Apr 05, 2006 1:04 am

How to count the rows ?parallel jobs.

Post by ketanshah123 »

Hi

In my sequential file (Source) there are more than 1000 records
I want to get first 500 records from it for further processing.
and wants to pass rest all records to another temporary file.

so my query is , In parallel job how can I count and get first 500 records from sequential file?

tried with @inrownum system fuction but not getting desired result.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

You can force sequential execution so that you only have one process, then use @INROWNUM to limit output from a link to 500.
ketanshah123
Participant
Posts: 88
Joined: Wed Apr 05, 2006 1:04 am

Post by ketanshah123 »

Thnx........ :D
Post Reply