*RUN_ALLOCATION 
Often the driver of an allocation is a value such as Sales, SquareFootage, or Employees that you must compare with its total over a given region. For example, the allocation formula for LeaseCost might be the following:
Allocated LeaseCost = LeaseCost * SquareFootage / Total Square_Footage
You can derive the Total Square_Footage, which is the sum of SquareFootage across all entities, using the following sample allocation instruction:
Example
* RUN_ALLOCATION
*FACTOR USING/TOTAL
*DIM ACCOUNT WHAT= LeaseCost; WHERE=<<<; USING=
SquareFootage; TOTAL= <<<
*DIM ENTITY WHAT= GLOBALOPS; WHERE=>>>; USING=
>>>; TOTAL= BAS(ALL_ENTITIES)
*ENDALLOCATION