system variables @NUMPARTITIONS and @PARTITIONNUM : explain

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
moalik
Participant
Posts: 39
Joined: Thu Sep 15, 2011 8:15 am
Location: Melbourne

system variables @NUMPARTITIONS and @PARTITIONNUM : explain

Post by moalik »

Hi All,

Could you please explain me about the System Variables

1. @NUMPARTITIONS
2. @PARTITIONNUM

and want to know their behavior while generating a sequence number?
Mohsin Khan
Datastage Consultant
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

Post by prasson_ibm »

Hi,

@NUMPARTITIONS is the count of number of partition used in your job design. If your number of partitions are 4 then
@NUMPARTITIONS=4

@PARTITIONNUM will be 0 for first partition and 1 for second partition and so on.

Using @NUMPARTITIONS,@PARTITIONNUM and @INROWNUM you can generate formula to create sequence number in parallel job.
moalik
Participant
Posts: 39
Joined: Thu Sep 15, 2011 8:15 am
Location: Melbourne

Post by moalik »

Hi Prasoon,

Do you mean the partitions as the no.of nodes used in the configuration file?
Mohsin Khan
Datastage Consultant
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

Post by prasson_ibm »

Yes
Post Reply