Focal Point
[CLOSED] RUNSTATS in WebFOCUS

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/667102862

October 15, 2009, 03:12 PM
fatboyjim
[CLOSED] RUNSTATS in WebFOCUS
Hi,

I'm currently running webFOCUS against DB2 database. Is there a way to run RUNSTATS command in a webFOCUS FEX? I know that we can write SQL passthru with SQL commands like SELECT, UPDATE, DELETE, but was unsuccessful in running RUNSTATS command, even simple ones like RUNSTATS ON TABLE [schema].[table_name]; Has anyone tried running RUNSTATS?

Thanks.

Best Regards,

Jimmy Pang

This message has been edited. Last edited by: fatboyjim,


DEV: WF 7.6.10
TEST: WF 7.6.10
PROD: WF 7.6.10
MRE: WF 7.6.4
OS/Platform: Windows
Dev Studio: WF 7.7
Output: HTML, EXCEL, PDF, GRAPH, LOTUS, CSV
October 15, 2009, 05:20 PM
Francis Mariani
RUNSTATS is a DBA function as it updates catalog statistics, so I don't think you'll be able to run this via WebFOCUS.


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
October 15, 2009, 06:30 PM
Darin Lee
That was my understanding as well. Is there a way to execute RUNSTATS via a DBMS stored procedure? If so you could just execute the the stored procedure from WebFOCUS.


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
January 08, 2010, 03:51 PM
fatboyjim
Thanks Darin for your suggestion.

I haven't tested out if it works running in a stored procedure because we have decided not to pursue running RUNSTATS in WebFOCUS.

I'll mark this one as closed.
Thanks again.

Best Regards,

Jimmy Pang


DEV: WF 7.6.10
TEST: WF 7.6.10
PROD: WF 7.6.10
MRE: WF 7.6.4
OS/Platform: Windows
Dev Studio: WF 7.7
Output: HTML, EXCEL, PDF, GRAPH, LOTUS, CSV