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.
Tom - That gives me a list of all APP directories, but NOT in the order of the directories from the APP SHOWPATH command. I need to know the first directory from APP SHOWPATH to determine if I need to do an APP COPYF or not.
Posts: 8 | Location: Information Builders Chicago Branch | Registered: November 15, 2005
If you read David's reply you will see that APP LIST doesn't give him what he requires - which is the result of APP SHOWPATH.
David,
Within a Tech Support search, I did come across a function called USERPATH, but am not sure that it a) works or b) gives what you need. However, the code was -
-SET &variable = USERPATH(256,'A256');
I've not been able to get it working (rel 7.6.2 servers) but the tech doc was as a result of a case. Search Tech Support with USERPATH and it's about the second one that shows (for me anyway).
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Tried Tony's suggestion in 7.6.5, along with FGETENV - Both return blanks... Tried in MRE and WRS...
From IBI:
How can you copy files to specific locations in a procedure?
Case: 40452515 Product: WebFOCUS Release: 761 Primary OS: UNIX Date: 08/03/18
Case information refers to the Product, Release, and OS for which this question was asked. The solution may apply to other Products, Releases, and Operating Systems.
Problem:
How can you copy files to specific locations in a procedure?
Solution:
In order to capture the location:
FGETENV to get the path at runtime, like this:
-SET &EDAPATH=' ';
-SET &EDAPATH=FGETENV(7,'EDAPATH',40,&EDAPATH);
-TYPE &EDAPATH is edapath
or
-SET &INIPATH = USERPATH (256,'A256');
-TYPE &INIPATH
I did look at USERPATH before posting this thread. Let me ask the question a different way: Is there a way to capture in a Dialogue Manager variable the APP directory the procedure you are executing? I know about &FOCFEXNAME, &FOCINCLUDE, APP SHOWPATH, and WHENCE, but there doesn't seem to be a way to find the APP directory through Dialogue Manager.
Posts: 8 | Location: Information Builders Chicago Branch | Registered: November 15, 2005
I can use GETTOK to parse up to the semicolon and capture the APP directory from there. I need to know the APP folder the procedure is running from to execute an APP COPYF command. Thanks for your help.
-Dave
Posts: 8 | Location: Information Builders Chicago Branch | Registered: November 15, 2005
This is a posting in a thread from last year. It shows you a convoluted way to find the app folder of the program being executed. It appears to be the only way so far...
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