Hi All,
i am getting Syntax error in the below logic script.
______________________________________________________________________________
*XDIM_MEMBERSET AN_CATEGORY = ACTUAL
*XDIM_MEMBERSET AN_ENTITY = USA
*XDIM_MEMBERSET AN_PRODUCT = LAPTOP
*XDIM_MEMBERSET AN_RPTCURRENCY = LC
*XDIM_MEMBERSET AN_ACCOUNT = REVENUE
*XDIM_MEMBERSET AN_TIME = 2005.JAN,2005.FEB,2005.MAR
// Select all the entities which are having “AGENT_COMMISSION” property as “A” and
// save the retrieved dataset in %PRODSET% variable which can later be used in the script.
*SELECT (%PRODSET%,[ID],AN_PRODUCT,AGENT_COMMISSION = 'A')
// Calculate the Agent Commission which is 3% of Revenue for all the products which are having
// “A” in their “AGENT_COMMISION” property for Jan, 2006 when Revenue data is entered/
// calculated
*FOR %CURPRODSET% = %PRODSET%
*WHEN AN_PRODUCT
*IS %CURPROD%
*REC(EXPRESSION = AN_ACCOUNT.REVENUE*.0.03,AN_ACCOUNT = AGT_COMM)
*ENDWHEN
*NEXT
_____________________________________________________________________________________
i am getting syntax error at the *FOR Statement, saying syntax error:"missing;before statement
is the error in the *FOR statement or the select statement.
do i need to the declare the variable %PRODSET% any where.
please share me your thoughts
thanks in advance .
Regards
Aditya