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.
A few weeks ago I had an issue where I wanted to use an && variable in the WORKSHEET parameter of the .acx file for an Excel file that could hold a variable number of sheets. I could not get that to work so I thought, since the .acx file is a single line of text, just overwrite it. I wrote code to do this and it works very well. For example, the current workbook has 4 sheets named: FY19-1stQuarter, FY19-2ndQuarter, FY19-3rdQuarter and FY19-4thQuarter. The .acx file ends up looking like this:
However, in each pass only sheet being read is FY19-1stQuarter. It appears that WebFOCUS has cached the master and acx and doesn't reparse the files even though the .acx file has changed. I think WebFOCUS is only reading the first sheet because WORKSHEET=FY19-1stQuarter is what is in the cached .acx file. If I change the order, i.e. read the 3rd sheet first, the 3rd sheet sheet is read in each pass.
So is there a way to force WebFOCUS reparse the master and acx within the fex? I've tried doing a FILEDEF clear on the .xlsx and .acx files but that did not work.This message has been edited. Last edited by: jgelona,
In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006
How to prevent caching of report output. Solution Section
To prevent this, use the following parameters that can be enable from the WebFOCUS Admin console:
EXPIRE_REPORTS - The time when reports generated by the WebFOCUS Reporting Server are to be re-executed. The expiration time is set in seconds, and the default setting is 300 seconds.
You can view a previously executed report on the browser without re-executing its request. If the request for a report you are running is the same as the one executed previously (within 300 seconds), then the browser displays the previously executed report stored in the cache when you use the Back, Reload, or the Refresh button of the browser.
To ensure that the reports are re-executed, set EXPIRE_REPORTS to 1 second.
_TempFileTimeout - Deletes files from the temporary directory. Files are deleted if they are older than the number of seconds specified. This parameter is located on Reporting Server Console, after right click on Application folder.
foccache_maxage - Defines the maximum number of minutes that a foccache directory remains active. The default is 180 minutes. 0 means unlimited (that is, the directory will be remain active as long as the session lasts or the server is running).
Here is an example of adding a Random number:
-SET &RAND = RDUNIF('D4.2') * 100000000;
Issuing the above command at the top of the FEX. In the calling URL, pass: RAND=&RAND
Thank you for using Focal Point!
Chuck Wolff - Focal Point Moderator WebFOCUS 7x and 8x, Windows, Linux All output Formats
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005
Thanks but I don't think that is what I want. First, I need to do this while the fex is running so making a change on the Admin Console is not practical. Second, I only want to do this for this file, not every file used in the fex. Third, making a change on the Admin Console would affect every agent. That is not what I want. I need something I can do in the fex to force WebFOCUS to reparse the .acx file.
In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006
I don't see any option in CHECK FILE for this so I opened a problem report and the solution was to use APP DELETEF to delete the .acx file. Something like this:
YI853QTR holds the various sheet names in yi853_input.xlsx. The first loop counts the entries and stores the sheet names in the &QTRNM.&QTRS (which is &QTRNM1, &QTRNM2, etc.). The second loop processes the excel spreadsheet, 1 sheet at a time. The key is the APP DELETEF command to delete the acx file. The funny thing is that I had tried using -UNIX rm opt/ibi/apps/tanf/yi853_input.acx where the APP DELETEF command is and that did not work. I'm guessing that using the -UNIX rm command, WebFOCUS doesn't know the acx file was deleted but using the APP DELETEF command it does so it knows to read the file again the next time the master is referenced.This message has been edited. Last edited by: jgelona,
In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006
Yes, commenting out the APP DELETEF command and putting CHECK FILE YI853_INPUT before the TABLE command does work.
This bring up one of my pet peeves about help on IBI's website. After initially reading dhagen's reply I searched for CHECK FILE syntax and never saw the page linked above because I believe that is for Mainframe FOCUS. I found several completely different pages when I searched:
Notice how link provided by dhagen has the JOIN option and the 2 links above do not and the link provided by dhagen states "CHECK FILE also reloads the Master File" and the other links do not. Actually, of the all the pages on CHECK FILE syntax, this was the only link I read that implicitly stated that CHECK FILE reloads the master. It would be nice to have consistent language. I really wish IBI would reorganize their Search. For example, have a button to select a major release and have something that is for language syntax. Many times I get better results using Google than I do using IBI's search.This message has been edited. Last edited by: jgelona,
In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006