APT_PARTITION_COUNT

InfoSphere® DataStage® sets this environment variable to the number of partitions of a stage. This environment variable is read only.

The number is based both on information listed in the configuration file and on any constraints applied to the stage. The number of partitions is the degree of parallelism of a stage. For example, if a stage executes on two processing nodes, APT_PARTITION_COUNT is set to 2.

You can access the environment variable APT_PARTITION_COUNT to determine the number of partitions of the stage from within:

  • an operator wrapper
  • a shell script called from a wrapper
  • getenv() in C++ code
  • sysget() in the SAS language.