Focal Point
[CLOSED] Pivot Table - getting error

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

March 02, 2012, 11:53 AM
Winnie
[CLOSED] Pivot Table - getting error
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
END

This 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




Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
March 02, 2012, 12:43 PM
Winnie
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




Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.