In TD14 there is a SHOW STATISTICS statement where it outputs the definition statement statistics of a table. I am trying to create a refresh statistics script and I intend to use this feature so as to make fewer steps. Only problem is how can I save the output of the SHOW stats so I can run it again inside the same script.
SHOW STATISTICS ON customer;
*** Text of DDL statement returned.
*** Total elapsed time was 1 second.
--------------------------------------------------------------------
COLLECT STATISTICS
COLUMN ( CUST_ID ) ,
COLUMN ( ORG_UNIT_ID ) ,
COLUMN ( CORP_CUST_NBR ) ,
COLUMN ( SERV_PLN_EFF_DT ) ,
COLUMN ( CTRY_CD ) ,
COLUMN ( CORP_CUST_NBR ,CTRY_CD )
ON PROD_TBLS_KDW.customer;
Thanks for the help.
Forums: