The POSTFIXPARALLEL command block is an optional, post-processing block within FIXPARALLEL...ENDFIXPARALLEL. You can use it to copy temporary, thread-level THREADVAR values into longer-persisting VAR variables that you can use outside the FIXPARALLEL block.


POSTFIXPARALLEL ( [ varName = ACCUMULATEVAR (threadVarName ); ]* );
Parameter Description


Name of a VAR variable to store the sum of all the thread’s values of a specified THREADVAR variable.


Keyword to add up all the thread values of a specified THREADVAR variable. The sum is then assigned to a specified VAR variable.


Name of a THREADVAR variable.


To copy temporary THREADVAR values into VAR variables you can use outside FIXPARALLEL, use the following task flow:

  1. Declare a VAR variable (outside of FIXPARALLEL block) to store the computed result.

  2. Declare a THREADVAR variable that you use within the FIXPARALLEL block.

  3. Use a POSTFIXPARALLEL block to copy the THREADVAR to the VAR.


The following example accumulates Sales values from THREADVAR variables to a VAR variable.

/* Store computed result of four tasks */
VAR totalSalesAmnt = 0;    
/* Four tasks */
FIXPARALLEL (2, "New York", "California", "Oregon", "Florida") 
/* Accumulate results of tasks into threads */
THREADVAR s_entitySalesAmnt;  
/* Use for computation in each task */
THREADVAR entitySalesAmnt;       
/* Use/change THREADVARs within member formula blocks */
    /* Initialize variables for this task */
   entitySalesAmnt = 2;
    /* Use the THREADVARS ... */
    /* Accumulate task-data into thread-data */
    s_entitySalesAmnt = s_entitySalesAmnt + entitySalesAmnt;
/* Copy computed data into longer-persisting VAR */
POSTFIXPARALLEL ( totalSalesAmnt = ACCUMULATEVAR ( s_entitySalesAmnt ););

See Also