Is there away to print parameters. I like to make a logging file.
example :
TABLE FILE CAR PRINT COUNTRY CAR &FOCFEXNAME &YYMD ENDThis message has been edited. Last edited by: <Kathryn Henning>,
February 03, 2015, 01:45 AM
Pravin.Singh
Hi,
The question is not much clear. If you want to print the parameter while debugging, use -TYPE &FOCFEXNAME.
Thanks, Pravin Singh
WebFOCUS 7703 Windows, All Outputs pravinsinghwebfocus.blogspot.com
February 03, 2015, 02:17 AM
MrM
Hi,
Thanks for your reply.
I want to save a file with global parameters such as &YYMD &TOD &FOCFEXNAME. Then I can use this file to report how often applications are been used.
Thanks, Mark
February 03, 2015, 03:47 AM
Pravin.Singh
Ok.. I got it now.
Try the following code:
APP HOLD baseapp
TABLE FILE CAR
PRINT COUNTRY
CAR
COMPUTE FEX_NAM/A50= '&FOCFEXNAME.EVAL';
COMPUTE LOG_DATE/YYMD= '&YYMD.EVAL';
ON TABLE HOLD AS HOLD_LOG FORMAT FOCUS
END
You can specify the folder where you want to store the Master file and the focus files. Please note while holding, you should give format focus.
Focus file HOLD_LOG.foc and master file HOLD_LOG.mas will be created in baseapp app which you can use for reporting.
Thanks, Pravin Singh
WebFOCUS 7703 Windows, All Outputs pravinsinghwebfocus.blogspot.com
February 03, 2015, 03:55 AM
Ram Prasad E
Check if you have license and enable Resource Analyzer. It captures more than this and stores in RDBMS tables. Either you can use WF provided reports, or create your own by hitting RDBMS tables.
Your report will run as you have typed it. However you might get something closer to what you want by putting the parameters in a heading or footing.
And I guess it depends on what you want to log. Do you want the log to contain actual data - as you have in your example - or do you want it to be a log of the transactions that make up your data ?