Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] FOCCACHE With OLAP

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] FOCCACHE With OLAP
 Login/Join
 
Gold member
posted
I saw a post this week regarding use of FOCCACHE. This would be a good solution for me with OLAP reports that I am developing.

Currently, I am using APP PATH and APP HOLD to create hold files in a particular application called HOLDTEMP. In order to keep a user from using the wrong hold file, I am creating user-specific hold file names by appending their userid to the hold file name. Then, when I run the OLAP report, I use the APP FI command so OLAP knows where to find the hold file.

Everything is running well with this setup, but one concern is that the hold files are not cleaned up. Because of how OLAP works, I cannot delete them after the report is run because they need to stay there as long as the user is using the OLAP functionality. So, I delete any hold files just before the step that creates them.

After I saw the post on FOCCACHE, I did some research on it and tried to implement it with my OLAP report. However, I received this error:

(FOC3245) ERROR ON PARSING TABLE IN OLAP

I checked the config settings on the server, and FOCCACHE is set to Y, and I can see the hold files being created in the FOCCACHE directory. However, I keep getting the above error when running the report.

Here is the code in question:

-*APP PATH HOLDTEMP
-*APP HOLD HOLDTEMP

-SET &CURRDAYSC = 'CURRDAYSC_' | &USERID;
-*CMD ERASE &APPROOT.EVAL\HOLDTEMP\&CURRDAYSC.EVAL.foc
-*CMD ERASE &APPROOT.EVAL\HOLDTEMP\&CURRDAYSC.EVAL.mas

DEFINE FILE CURRDAY
&METRIC_TWK_SC/I7 = IF &METRIC_TWK EQ 0 THEN 0 ELSE 1;
END
TABLE FILE CURRDAY
SUM &METRIC_TWK
BY STORE_ID
ON TABLE HOLD AS FOCCACHE/CURRDAYSC FORMAT XFOCUS
-*ON TABLE HOLD AS &CURRDAYSC FORMAT XFOCUS
END

-IF &FOCERRNUM NE 0 THEN GOTO END_TREND;

-OLAP ON

OLAP DIMENSIONS
Stores: COMPANY_NAME, REGION_NAME, DIVISION_NAME, AREA_NAME, DISTRICT_NAME, STORE_NAME;
END

-*APP FI &CURRDAYSC HOLDTEMP/&CURRDAYSC.EVAL.FOC

TABLE FILE FOCCACHE/CURRDAYSC
-*TABLE FILE &CURRDAYSC
SUM
     COMPUTE &METRIC_TWK_PERWK/P13.2 = &METRIC_TWK / &METRIC_TWK_SC ;
END
-RUN



I tried playing around with APP PATH/HOLD/FI using FOCCACHE as the directory, but that didn't help.

Does anyone know if FOCCACHE can be used with OLAP reports? If so, can you tell me what I am doing wrong?

Thanks!

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


WebFOCUS 8
 
Posts: 74 | Location: Gahanna, OH | Registered: September 22, 2009Report This Post
Expert
posted Hide Post
It appears that simply adding -OLAP ON to the code causes the problem. I'd open a case with Tech Support.

-GOTO STEP2

-STEP1
TABLE FILE CAR
SUM
SALES 
BY COUNTRY
BY MODEL
ON TABLE HOLD AS FOCCACHE/HCAR001 FORMAT FOCUS INDEX COUNTRY MODEL
END
-RUN

-STEP2

-OLAP ON

TABLE FILE FOCCACHE/HCAR001
PRINT *
END
-RUN


First run with -GOTO STEP1, comment -OLAP ON.
Then run with -GOTO STEP2, uncomment -OLAP ON.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
A possible workaround while you're looking for the solution: Create a second HOLD file from the FOCCACHE HOLD file, then issue the OLAP ON command and use this file for the OLAP request.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
Thanks, Francis. I have opened a case, and I'll update this post when I have received a response/answer.


WebFOCUS 8
 
Posts: 74 | Location: Gahanna, OH | Registered: September 22, 2009Report This Post
Platinum Member
posted Hide Post
This works for me:
  
TABLE FILE GGSALES
PRINT * 
ON TABLE HOLD AS FOCCACHE/GOTSOME
END
-RUN
-OLAP ON
TABLE FILE GOTSOME
SUM DOLLARS BY CATEGORY BY PRODUCT
END

All the subsequent olap interactions go against the gotsome file stored in my foccache.


Brian Suter
VP WebFOCUS Product Development
 
Posts: 200 | Location: NYC | Registered: January 02, 2007Report This Post
Expert
posted Hide Post
Brian, how come you don't have to say
TABLE FILE FOCCACHE/GOTSOME


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Virtuoso
posted Hide Post
According to the documentation for FOCCACHE, when it is turned on (which appears to be the default starting with release 7.6.7), FOCCACHE is appended to the front of the APP path for every new WebFOCUS session. So FOCCACHE becomes the first location searched for all file references. Therefore, despite what the documentation says, after a file has been stored in FOCCACHE (via ON TABLE HOLD/SAVE AS FOCCACHE/filename), the syntax TABLE FILE FOCCACHE/filename should not be necessary - and in fact is not: TABLE FILE filename works just fine.

It occurs to me that APP HOLD FOCCACHE might be used to direct all temporary session files to FOCCACHE so references to FOCCACHE in ON TABLE HOLD/SAVE would also not be necessary.

This message has been edited. Last edited by: Dan Satchell,


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Gold member
posted Hide Post
Brian, I tried to test with your code sample, and I was able to run an initial OLAP report. However, when I tried to sort the Dollars column, I received the error that the description could not be found for the GOTSOME file.

I have a case open with IBI and am working with someone there now. One possible issue is that it just doesn't work with the version of WebFOCUS we are using here.


WebFOCUS 8
 
Posts: 74 | Location: Gahanna, OH | Registered: September 22, 2009Report This Post
Gold member
posted Hide Post
Probably due to permission and version issues on my side, I was not able to get the FOCCACHE process to work with code provided by IBI. Because I have a working process in place, I have closed my case with IBI.

Thanks to everyone for the input on this!


WebFOCUS 8
 
Posts: 74 | Location: Gahanna, OH | Registered: September 22, 2009Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] FOCCACHE With OLAP

Copyright © 1996-2020 Information Builders