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.
Is there any way to get the actual path to the foccache folder which is created when a procedure is running? I understand that it is located in edatemp and I can reference anything from it by using 'FOCCACHE/FILENAME' but I have to run a dos command to execute a batch file which is in FOCCACHE and so I need the full path. Any help is appreciated.
Thanks, PrinceThis message has been edited. Last edited by: Prince Joseph,
Webfocus 8, All Outputs
Posts: 47 | Location: Atlanta, GA | Registered: June 09, 2011
TABLE FILE CAR
PRINT COUNTRY
ON TABLE HOLD AS FOCCACHE/FC_CTRY
END
SQLFMI SET SYSFILES MASTER
TABLE FILE SYSFILES
PRINT *
WHERE FILENAME EQ 'fc_ctry'
END
SYSFILES will give the location of the file type, in this case MASTER file. Other types are supported.
If you know that a file exists in FOCCACHE, then this should work.
I have seen a limit with the number of characters stored in the location though. So if its a long path and or loing name, there may be issues.
In 7.7 we used SYSFILES to get the full path name to the sub-directory of FOCCACHE for that session. In 8.0.01 PHNAME just contains e.g. foccache/fc_ctry.mas
WebFOCUS 8.2.06 mostly Windows Server
Posts: 195 | Location: Johannesburg, South Africa | Registered: September 13, 2008
Hi everyone, Just an update. What I have been able to determine is that the change in behaviour in fact has to do with SYSFILES, and is not necessarily restricted to FOCCACHE. In 8.0.01 and 8.0.02 the PHNAME field of SYSFILES contains the appname/filename, and not the Physical File name as it did previously. I will keep you posted ;-)
WebFOCUS 8.2.06 mostly Windows Server
Posts: 195 | Location: Johannesburg, South Africa | Registered: September 13, 2008
As you indicate, in WF 8, PHNAME contains app/filename, as
APP PREPENDPATH IBISAMP
TABLE FILE GGSALES
PRINT *
ON TABLE HOLD AS FOCCACHE/HLDSALES
END
-RUN
TABLE FILE SYSFILES
PRINT FILENAME
PHNAME
IF FILENAME EQ hldsales
END
-DEFAULTH &APPLOC = ' '
-* put a file in the foccache
TABLE FILE CAR PRINT *
ON TABLE HOLD AS FOCCACHE/TOUT FORMAT ALPHA
END
-RUN
TABLEF FILE _EDAHOME/CATALOG/SYSAPPS
-* apploc is the fully qualified directory name
PRINT APPLOC
WHERE FNAME EQ 'tout';
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE SET ASNAMES ON
ON TABLE HOLD AS TDIRNAME
END
-RUN
-READFILE TDIRNAME
-TYPE Dir is &APPLOC
"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott