I am getting this error when I'm using EXL2K PIVOT. I'm trying to learn how to use this format and i'd appreciate any input.
"(FOC3252) VERBS MUST PRECEDE 'HOLD FORMAT EXL2K PIVOT'"
here's my code below...
TABLE FILE SQLOUT BY driverNumber HEADING "Driver Incident" " " ON TABLE SET PAGE-NUM NOLEAD ON TABLE NOTOTAL
Thanks! ON TABLE PCHOLD FORMAT EXL2K PIVOT PAGEFIELDS driverNumber CACHEFIELDS incidentNumber ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * INCLUDE = endeflt, $ ENDSTYLE ENDThis message has been edited. Last edited by: Kerry,
Winnie
Webfocus 7.7.3
March 02, 2012, 12:07 PM
njsden
quote:
(FOC3252) VERBS MUST PRECEDE 'HOLD FORMAT EXL2K PIVOT
quote:
TABLE FILE SQLOUT BY driverNumber HEADING "Driver Incident"
Could this be related to the fact that you're not specifying any verb (SUM/PRINT) in your request? Try adjusting it by using a SUM or PRINT there and perhaps including a measurement (any numeric value) Excel can use when pivoting the results.
TABLE FILE SQLOUT
SUM
COMPUTE REC_CNT/I4 = 1;
BY driverNumber
...
END
thanks! So I tried it with the code below using SUM and I'm still getting the same error...
TABLE FILE SQLOUT PRINT * ON TABLE HOLD AS SQLOUT END
TABLE FILE SQLOUT SUM COMPUTE cntincident/D12 = CNT.incidentNumber; BY driverNumber HEADING "Driver Incident" " " ON TABLE SET PAGE-NUM NOLEAD ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT EXL2K PIVOT PAGEFIELDS driverNumber CACHEFIELDS incidentNumber ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * INCLUDE = endeflt, $ ENDSTYLE END
Winnie
Webfocus 7.7.3
March 02, 2012, 02:35 PM
njsden
This works for me in 7.7.03. Can you try in 7.6.8 to see what results you get?
If it works, you can perhaps model your request to match that. What happens if you remove the PAGEFIELDS and CACHEFIELDS from your request?
TABLE FILE CAR
PRINT
DEALER_COST
SALES
BY COUNTRY
ON TABLE SET HTMLCSS ON
ON TABLE PCHOLD FORMAT EXL2K PIVOT
END