As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
I'm trying to build & run a report with the following syntax. However, I'm hit with FOC 280 (comparison between computational and alpha values is not allowed. Any advise or assistance is very much appreciated.
Thanks.
SDAT/DMYY=HDATE(VOICELOGGER.STARTTIME, 'YYMD'); TIME/HHIS=HEXTR(VOICELOGGER.STARTTIME, 'HHIS',8,'HHIS'); SHIFT1/A20= IF CALL EQ 'Incoming' AND TIME GE '09:00:01' AND TIME LE '17:30:00' THEN '1' ELSE '0'; SHIFT2/A20= IF CALL EQ 'Incoming' AND TIME GE '17:30:01' AND TIME LE '09:00:00' THEN '1' ELSE '0'; END
TABLE FILE VOICELOGGER SUM SHIFT1/I7C SHIFT2/I7C
BY VOICELOGGER.SDAT AS 'DATE'This message has been edited. Last edited by: Tamra,
R7.7.0.1 Windows, All Outputs
Posts: 15 | Location: Malaysia | Registered: January 19, 2012
Looking at this code, a couple of suggestions come to mind:
The current code will return only a '1' or '0' for SHIFT1 and SHIFT2 as you are using SUM on an alpha field.
SHIFT2 cannot be true as no time can be greater than or equal to '17:30:01' AND less than or equal to '09:00:00'.
I would suggest:
SDAT/DMYY=HDATE(VOICELOGGER.STARTTIME, 'YYMD');
TIME/HHIS=HEXTR(VOICELOGGER.STARTTIME, 'HHIS',8,'HHIS');
SHIFT1/I7C =
IF CALL EQ 'Incoming' AND TIME GE '09:00:01' AND TIME LE '17:30:00' THEN 1 ELSE 0;
SHIFT2/I7C =
IF CALL EQ 'Incoming' AND (TIME GE '17:30:01' OR TIME LE '09:00:00') THEN 1 ELSE 0;
END
TABLE FILE VOICELOGGER
SUM
SHIFT1
SHIFT2
BY VOICELOGGER.SDAT AS 'DATE'
Alan. WF 7.705/8.007
Posts: 1451 | Location: Portugal | Registered: February 07, 2007