Page 1 of 1

system variables @NUMPARTITIONS and @PARTITIONNUM : explain

Posted: Thu Jan 22, 2015 1:37 am
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?

Posted: Thu Jan 22, 2015 3:12 am
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.

Posted: Thu Jan 22, 2015 3:41 am
by moalik
Hi Prasoon,

Do you mean the partitions as the no.of nodes used in the configuration file?

Posted: Thu Jan 22, 2015 5:50 am
by prasson_ibm
Yes