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.
How can you overwrite a FOCUS file on the data server without issuing modify (MODIFY FILE...) commands? I am simply issuing an ON TABLE HOLD AS ... FORMAT FOCUS. When I setup the files (FOC and MAS) I used the APP HOLDMETA and HOLDDATA commands, however without those I cannot overwrite the focus file. In this example I first create the file issuing the APP HOLDMETA/DATA commands and loda file with france. Then I comment out the APP HOLDMETA/HOLDDATA commands and run again with different criteria. The program runs and appears to have worked as I hope, but the original data is still intact.
Here is my code:
-*APP HOLDDATA bitemp -*APP HOLDMETA bitemp -* above commented after initial run. -* APP FI AA_WRITE bitemp TABLE FILE CAR PRINT * WHERE COUNTRY EQ 'FRANCE' ON TABLE HOLD AS AA_WRITE FORMAT FOCUS END
I am guessing this has to do with the internal modify that happens behind the scenes. Is there a way to make this work without those APP HOLD commands? I don't want to dirty up my application directories with other junk.
Seems like I recall a recent post about being able to access files created with the app hold commands in subsequent requests. I don't recall the outcome, however. In any case you can include a USE statement in your fex (or user/server profile) that points fex to the right FOC files. But that's still adding some "other junk". Try searching the forum for APP HOLD / APP FI/ APP HOLDDATA
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
Using the FOCUS file in a subsequent requests is my main objective. This works with the APP commands, however in a new month when I go to "step on" this focus file I cannot. I can if I issue the "modify file" commands, but I'd rather not do that.
The HOLDMETA and HOLDDATA work... But I don't want to use them because of the many intermediate hold files created within my procedure fill up my application folder. What I am realling looking to find out is why doesn't the following work:
APP FI myhold appPath/myhold.foc TABLE FILE CAR PRINT * WHERE COUNTRY EQ 'FRANCE' ON TABLE HOLD AS MYHOLD FORMAT FOCUS END
when the following does work?
APP FI myhold appPath/myhold.ftm TABLE FILE CAR PRINT * WHERE COUNTRY EQ 'FRANCE' ON TABLE HOLD AS MYHOLD END
(what I mean by work is the results are saved into the hold files)