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     [SOLVED] Determine if HOLD File Exists in FOCCACHE

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Determine if HOLD File Exists in FOCCACHE
 Login/Join
 
Gold member
posted
I'm creating a HOLD file (format ALPHA) in FOCCACHE. This file is TABLE'd again (ON TABLE PCHOLD FORMAT XML) to populate a drop-down list control in an HTML form. The HOLD file can be used repeatedly during a user's session, and I only want to create it once (i.e., first time thru). I need a way to detect if it already exists so I don't keep hitting the database server to recreate it. Can anyone help with the appropriate command? I know about the STATE command/&RETCODE combination, but I don't seem to be providing the correct path to the HOLD file -- it's never found.

Thanks!

Craig

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


v8.1.04, 64-bit Windows (Reporting Server), Apache Tomcat (Web/App Server), HTML, PDF, AHTML, Excel outputs
 
Posts: 57 | Location: Des Moines, IA | Registered: April 30, 2009Report This Post
Virtuoso
posted Hide Post
Since no takers yet, let me try. I would use CHECK FILE. It sets &LINES to the number of fields defined in the Master, and &RECORDS to number of segments, if the Master file exists and is valid; and both to zero otherwise. Since foccache start out empty, the Master file will exist in foccache if and only if the data file was already pulled during the current browser session.

So you can test whether the pull already took place as follows;
CHECK FILE FOCCACHE/holdfile
-RUN
-IF &LINES GT 0 THEN CONTINUE ;
*** code to populate FOCCACHE/holdfile ***
-CONTINUE
. . .


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Gold member
posted Hide Post
Mr. G.

Works like a charm. Many thanks...

And thanks for responding at all. This was my first post, and it must have been a yawner!

Best regards,

Craig


v8.1.04, 64-bit Windows (Reporting Server), Apache Tomcat (Web/App Server), HTML, PDF, AHTML, Excel outputs
 
Posts: 57 | Location: Des Moines, IA | Registered: April 30, 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     [SOLVED] Determine if HOLD File Exists in FOCCACHE

Copyright © 1996-2020 Information Builders