IBM Cognos Sample Programs
ExecReportsAtUI.java - Execute a Report at a specific time/date.
The Java ExecReportsAtUI sample program triggers the scheduled execution of a report and saves the output in a specified format.
Dependent Files
Associated files are contained under the java sample folder.
Additional files required for running are identified in the CLASSPATH definitions in run.bat file.
How To Run The Sample Program
Double click on the file run.bat.
A window will be opened containing:
- Report Type dropdown box
- Report selection dropdown box
- Execute Report command button
- URL text box
- Results Display Pane
Click on the 'Execute At ...' button to run the sample program.
Expected Results
The report is executed several minutes in the future, and the output is saved as a view in the content store. The output will be found in the same location as the report that was scheduled with a matching name.
Documentation
The IBM Cognos Software Development Kit Developer Guide contains additional information about the samples. See the chapter titled 'Methods' and the appendix titled 'Code Samples and Language-Specific Coding Practices'.
Please note that the samples are not intended to be treated as end-user applications. Refer to the sample code for examples of how to use the API when developing your own applications.