Hi All,
COUNT keyword in allocation logic throws error. It is not recognized in while running script. Doesn't throw error while validation.
My logic look like below,
*RUNALLOCATION
*FACTOR=USING/COUNT
*DIM ENTITY WHAT=TEST; WHERE=BAS(ALL_ENTITY); USING=TEST;
*ENDALLOCATION
I am getting an error message "COUNT is not recognized"
Here the count keyword doesnt work. Is it only in MS version it will work?
Basically i want the count of all entities and allocate it based on that number. Is there any other way we can achieve it?
Thanks & Regards,
Ramanathan
Hi,
isn't it 1/count and using/total? In this case you'll need the first.
kind regards,
christophe
Hi Christophe,
Thanks for the reply,
In my case i tried both 1/COUNT and also USING/COUNT. After running the package system doesn't recognize the COUNT keyword.
Thanks,
Ramanathan
Hi,
the COUNT keyword should exist in NW as well..
So you tried the following? ie without the using ?
*RUNALLOCATION
*FACTOR=1/COUNT
*DIM ENTITY WHAT=TEST; WHERE=BAS(ALL_ENTITY); USING=TEST;
*ENDALLOCATION
Yes we tried, It gave the below error,
Reference Error: COUNT is not defined.
Can you post your script logic here, that might help to identify the issue.
Below is my complete logic, *SELECT(%LIST%, "[ID]",E_DIM, "[BU]=E_INPUT") *XDIM_MEMBERSET CATEGORY =PLAN *XDIM_MEMBERSET DATASRC=INPUT *XDIM_MEMBERSET RPTCURRENCY=LC *XDIM_MEMBERSET C_ACCOUNT=C1000 *XDIM_MEMBERSET ENTITY=E1000 *RUNALLOCATION *FACTOR=1/COUNT *DIM E_DIM WHAT=TEST; WHERE=%LIST%; *ENDALLOCATION If i remove COUNT it works fine.