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.
&IBIMR_domain identifies the name of the domain in mre. but for backend apps where there are fexes (argh!), is there some similar way to get an &IBI variable that would grab me the app name, ie the location of that fex? TIA -sThis message has been edited. Last edited by: susannah,
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
ahhhhhhh yes syscolumn ok that's the only way... i can't use it b/c i'll have 10 apps with the same fexname in them (i work in multi-developer bedlam w/ no one following rules) but muchas gracias, francesco
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
As for the physical location of the file you could (mis)use tracing. It will not give you the app name however. But if the location is enough for you, then:
SET TRACEOFF = ALL
SET TRACEON = ALL
SET TRACESTAMP=OFF
SET TRACEUSER=C:\TEMP\TEST.TRC
-RUN
WHENCE &FOCFEXNAME FOCEXEC
SET TRACEOFF = ALL
-RUN
FILEDEF MASTER DISK TRACE.MAS
FILEDEF TRACE DISK C:\TEMP\TEST.TRC
-RUN
-WRITE MASTER FILENAME=TRACE, SUFFIX=FIX
-WRITE MASTER SEGNAME=TRACE
-WRITE MASTER FIELDNAME=LINE, FORMAT=A200, ACTUAL=A200, $
-RUN
DEFINE FILE TRACE
RESULT/A150 = SUBSTR(200,LINE,50,200,150,RESULT);
END
TABLE FILE TRACE
PRINT RESULT
IF LINE CONTAINS 'ngput'
END
Hope this helps ...
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
But even with very many apps with all the same fexnames, you have to have a means to instruct the server which of those fexes to run. And only after that has been established, then you could use one of the methods above. The server cannot execute more than one fex simultaneously in the same session, so the &FOCFEXNAME is populated with the correct name, and the WHENCE will give you the path the server used to reach the fex.
Or is there still some other underlying problem that you have that I do not see at the moment?
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
oh i see what you're saying GAmp the WHENCE is operating after the APP PATH whatever has locked the path down, so your trace method of grabbing the output of a WHENCE command would in fact give me the app, with alot of work. ok got it bless your heart.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
... Programming are looking at ways to accomplish this with lots of different commands. However this is just in the talking stage and it still has not been decided if or when it will be done. Some of the other commands would be; ? FILE, ? FDT, ?FF, etc. As of now we don't have any way of doing this....
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
One thing you can consider is using APP PREPENDPATH in your session to force the APPPATH to be what you want it to be. This will ensure that you pick up the Focexec from the correct application. However, this also has a big drawback. Now you are 'aiding and abetting' the programmer bedlam, and there is no motivation to follow the rules.
Diptesh WF 7.1.7 - AIX, MVS
Posts: 79 | Location: Warren, NJ, USA | Registered: October 25, 2006
this is still being discussed and still without agreement as to impliment or not. You may well help by bring this up though either FOCAL point for Ibug. and Yes many clients have requested this
- Tech Support
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
Francis, I have spoken with the division, and they suggest the folowing: 1) Please provide a precise example of what you are trying to accomplish. 2) A Business reason for the feature. This will assist them in discussibf this with programming.
- Tech Support
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
I have found no documentation on using USERPATH as a function. USERPATH is only mentioned as an environment variable not to be used in the FPUTENV, "Limit: You cannot use FPUTENV to set or change FOCPRINT, FOCPATH, or USERPATH; once started, these variables are held in memory and not reread from the environment."
I wonder why USERPATH as a function or a variable name in the FGETENV function returns blank.
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
OK. I've just done a bit more testing and it's a good one.
both windows and unix have the same bugs.
On windows it does not insert the ; delimiter after the first one. On Unix it does not insert the : delimiter after the first one.
On both systems you can specify a length of the returned variable of up to 32K and everything works with the function actually returning a variable 32K long.
PROVIDING the physical length of the path is less than about 530 bytes
If the physical path is greater than about 530 then it crashes the session.