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.
I think there is code to put at the top and/or bottom of a .fex to check how much "recources" the .fex uses. Basically I want to code my program one way, get a number, rewrite the program to get the same information (a different way), and get another number for comparison. I realize other factors are involved but this should work for what I need. Does anyone have suggestions for a search here or the actual code to help? Thanks for any help.
If you put a ? STAT after the END and -RUN it gives records, lines, i/o, reads, sort used, and a bunch of other stuff. Is this what you're looking for?
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
You can also use &FOCCPU. Whenever you invoke this variable it will give you the time in milliseconds. For MVS it is the CPU time. For WIN, I am not so sure. Example:
-* File jcs.fex
-SET &ECHO=OFF;
-SET &START=&FOCCPU;
SET MSG=OFF
-REPEAT #A FOR &I FROM 1 TO 100;
TABLE FILE CAR
COUNT COUNTRY CAR BODY
ON TABLE HOLD
END
-RUN
-#A
-RUN
-SET &END= &FOCCPU;
-SET &TIME=&END - &START;
-TYPE &START &END &TIME
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006
Unfortunately, there isn’t a code that can be used in the fex to show the resources used. The “? STAT” command will gives some statistics, such as number of records, reads, etc, but it does not show resource consumption. To get this kind of information, they will need to use the Resource Management tools (Resource Analyzer and Resource Governor). For more information on Resource Management, the following document may be of interest: