Examples
- In this example the
reportcli.cmdis run with the default parameter and produces the reportjrh1:reportcli.cmd -p D:\ReportCLI\TWSReportCli\reports\templates\jrh.properties -r jrh1 - In this example the
reportcli.cmdis run using the-kparameter to override the values set for PARAM_DateFormat in the.\config\common.propertiesfile and produces the reportjrh2:reportcli.cmd -p D:\ReportCLI\TWSReportCli\reports\templates\jrh.properties -r jrh2 -k PARAM_DateFormat=short - In this example the
reportcli.cmdis run using the-kparameter to override the format specified for the report output in the PROPERTIES file and produces the reportwwr3:./reportcli.sh -p /TWSReportCli/REPCLI/reports/templates/wwr.properties -r wwr3 -k REPORT_OUTPUT_FORMAT=html -k OutputView=charts - Do the following if you want to run a Custom SQL report and make
available the output of the report at the following URL as
http://myserver/reportoutput/report1.html:- Configure the
ContextRootUrlparameter in the common.properties files as follows:###################################################################### # HTTP Server information ###################################################################### #Specify the context root where the report will be available #To leverage this possibility it needs to specify in the report output dir #the directory that is referred by your HTTP Server with this contect root ContextRootUrl=http://myserver/reportoutput - When you run a command specify as output_report_dir a
directory that points to the same HTTP directory specified in the ContextRootUrl.
For example, if you mapped locally the
http://myserver/asR:driver, you can run the following command:reportclibat -p REPORT_CLI_DIR\reports\TWS\historical\templates\sql.properties -r report1 -o R:\reportoutput - As a confirmation for the successful run of the report, the following
message is displayed:
This URL shows where the report output is available.AWSBRC0106I Report available on: http://myserver/reportoutput/report1.html
- Configure the
Note: If the report is run through an HCL Workload Automation job,
the output of the command is displayed in the job output.