Row number issue

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
vij
Participant
Posts: 131
Joined: Fri Nov 17, 2006 12:43 am

Row number issue

Post by vij »

Hi all,

I am using Parallel Ex.I am facing a problem with @INROWNUM. Actually I have a job where I have to write a single record for any number of records from the source.

the job looks like this:

DataSet->Transformer->Sequential File

For any number of records from DataSet, I have to write a single record's values into that Sequential File.

So, I have used a @INROWNUM and it worked fine, when i have changed the 4 node configuration file, 4 records are written into that file. Now which System Varibale can be used, so that only one record is written into the file? Pls help me out.
Thanks in advance!
Vij
JoshGeorge
Participant
Posts: 612
Joined: Thu May 03, 2007 4:59 am
Location: Melbourne

Post by JoshGeorge »

If you search in FAQ section you will find your answer.
Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
sunil_acc
Participant
Posts: 28
Joined: Thu Oct 20, 2005 5:49 am

try this

Post by sunil_acc »

@PARTITIONNUM + (@NUMPARTITIONS* @INROWNUM)
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You can not expect to write one row in parallel execution. @INROWNUM is calculated on each processing node. Constrain the job to execute in sequential mode - or in a single node node pool - irrespective of the number of nodes in the configuration file.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
JoshGeorge
Participant
Posts: 612
Joined: Thu May 03, 2007 4:59 am
Location: Melbourne

Post by JoshGeorge »

This POST might be helpful.
Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
Post Reply