Focal Point
[CLOSED] multiple verb specification is invalid... error

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3127025606

July 07, 2011, 09:21 AM
Charles Richards
[CLOSED] multiple verb specification is invalid... error
TABLE FILE COMCLASS_MOVEMENT
SUM
totCost NOPRINT
totSRP NOPRINT
totbydepcase NOPRINT
Departtotprof NOPRINT
DepartmentTotProfit NOPRINT
cITEMS NOPRINT
cITEMSC NOPRINT
NOcITEMS NOPRINT
NOcITEMS NOPRINT
departcost NOPRINT
NOcITEMS NOPRINT
cITEMS NOPRINT
cITEMSC NOPRINT
COMPUTE DepCost/D10.2 = totCost; NOPRINT AS 'DepCost'
COMPUTE DepSRP/D10.2 = totSRP; NOPRINT AS 'DepSRP'
COMPUTE DepCase/D10 = totbydepcase; NOPRINT AS 'DepCase'
COMPUTE DepProf/D10.2 = Departtotprof; NOPRINT AS 'DepProf'
COMPUTE DepartmentProfit/D10.2 = DepartmentTotProfit; NOPRINT
AS 'DepartmentTotProfit'
COMPUTE TOTPCTPRODEP/D9.2 = ( TotalProfit / totSRP ) * 100; NOPRINT
COMPUTE totalcases/I7 = CaseDel; NOPRINT
COMPUTE totalcostdepart/D12.2 = totCost; NOPRINT
COMPUTE totaltotal/D12.2 = totSRP - totCost + cITEMSC; NOPRINT
AS 'totaltotal'

BY IN_CUSTNO NOPRINT
BY DepartOrder NOPRINT
BY IN_DEPARTMENT NOPRINT
----------------------------------------
i think it has to do with the following section
-----------------------------------------
SUM
COMPUTE gtotbydepcase/I7 = totbydepcase + cITEMS + NOcITEMS; NOPRINT
COMPUTE gtotcost/D12.2 = totCost; NOPRINT
COMPUTE gtotalprof/D12.2 = totSRP - departcost; NOPRINT
COMPUTE gpercentprof/D12.2 = ( totSRP - departcost ) / totSRP * 100; NOPRINT
BY IN_CUSTNO



I dont know what this error is or how to fix it

thanks for the help!

This message has been edited. Last edited by: Kerry,


WebFOCUS 7.6
Windows, All Outputs
July 07, 2011, 09:44 AM
RSquared
Charles,

This error is caused by the fact that you need to have you multi-verb in a particular sequence. It has to be BY IN_CUSTNO first and then BY IN_CUSTNO BY...


WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit
July 07, 2011, 10:44 AM
Charles Richards
Ok, but then how would I get those computes to sum by just IN_CUSTNO? If I put in more BY fields it will give me the worng result, i believe


WebFOCUS 7.6
Windows, All Outputs
July 07, 2011, 11:46 AM
RSquared
Unless you are using the fields you computed in the first statements later, just switch the order on the Computes.

/*
TABLE FILE COMCLASS_MOVEMENT

SUM
COMPUTE gtotbydepcase/I7 = totbydepcase + cITEMS + NOcITEMS; NOPRINT
COMPUTE gtotcost/D12.2 = totCost; NOPRINT
COMPUTE gtotalprof/D12.2 = totSRP - departcost; NOPRINT
COMPUTE gpercentprof/D12.2 = ( totSRP - departcost ) / totSRP * 100; NOPRINT
BY IN_CUSTNO


SUM
totCost NOPRINT
totSRP NOPRINT
totbydepcase NOPRINT
Departtotprof NOPRINT
DepartmentTotProfit NOPRINT
cITEMS NOPRINT
cITEMSC NOPRINT
NOcITEMS NOPRINT
NOcITEMS NOPRINT
departcost NOPRINT
NOcITEMS NOPRINT
cITEMS NOPRINT
cITEMSC NOPRINT
COMPUTE DepCost/D10.2 = totCost; NOPRINT AS 'DepCost'
COMPUTE DepSRP/D10.2 = totSRP; NOPRINT AS 'DepSRP'
COMPUTE DepCase/D10 = totbydepcase; NOPRINT AS 'DepCase'
COMPUTE DepProf/D10.2 = Departtotprof; NOPRINT AS 'DepProf'
COMPUTE DepartmentProfit/D10.2 = DepartmentTotProfit; NOPRINT
AS 'DepartmentTotProfit'
COMPUTE TOTPCTPRODEP/D9.2 = ( TotalProfit / totSRP ) * 100; NOPRINT
COMPUTE totalcases/I7 = CaseDel; NOPRINT
COMPUTE totalcostdepart/D12.2 = totCost; NOPRINT
COMPUTE totaltotal/D12.2 = totSRP - totCost + cITEMSC; NOPRINT
AS 'totaltotal'

BY IN_CUSTNO NOPRINT
BY DepartOrder NOPRINT
BY IN_DEPARTMENT NOPRINT
*/


WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit