RUNALLOCATION in Default Logic - Question
I am trying to distribute from members 2015.INP to base level members of 2015.TOTAL which are 2015.01,2015.01...
While this script is working, I would like to limit the RUNALLOCATION program to start only when a .INP member is changed. In the following case the RUNALLOCATION is executed every time no matter I do changes only to the base level members of .TOTAL.
*SELECT (%YR%, "[YEAR]", S_TIME, "[ID] = %S_TIME_SET%")
*IS <> %YR%.INP
*FACTOR = 1/12
*DIM S_TIME WHAT = %YR%.INP ;WHERE = BAS(%YR%.TOTAL); Using = >>>; Total = %YR%.INP
With *When and FOR/NEXT that could be done, but what about RUNALLOCATION?
Vadim Kalinin replied
Please look on my code from previous answer - it will run RUNALLOCATION only if INP member is changed:
*SELECT (%YRS%, "[YEAR]", S_TIME, "[ID] = %S_TIME_SET% AND [ISINP]=Y")
ISINP - TIME dimension property set to Y for YYYY.INP members
For 2015.03 "15" - %YRS% will be empty (ISINP<>Y)! End FOR/NEXT will not run...