IBM Cognos Sample Programs

NewScheduler.java - Creates a schedule on a report.

The Java NewScheduler sample program creates a schedule on a report to be run at specified times.


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 selection dropdown box
    - Schedule Report command button
    - URL text box
    - Output pane
Click on the 'Schedule Report' button to run the sample program.

Expected Results

A schedule will be created for the selected report and it will be set to start running one minute after the schedule is initially created. The report will run every three minutes for two intervals. The schedule entry will create a report view named based on the report name under the same folder as the report. A confirmation message is sent to the Output pane upon creation of the schedule entry.

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.