Sample Program: Declarations, Set Up, and Print Specifications
REPORT BCSAMPLE.
*
* You must include LBTCHDEF in all background processing
* applications. Use only the LBTCHDEF definitions that appear
* in examples as values for function modules. LBTCHDEF also
* declares values that are used only internally in background
* processing.
*
* If you plan to schedule external programs, you must include
* RSXPGDEF to define constants for the control flags for external
* programs.
*
INCLUDE LBTCHDEF. " Background processing definitions.
INCLUDE RSXPGDEF. " Definitions for external programs.
*
* Sample DATA entries for scheduling a job.
*
DATA: JOBNUMBER LIKE TBTCJOB-JOBCOUNT, " Job ID and
JOBNAME LIKE TBTCJOB-JOBNAME, " job name.
STARTDATE LIKE TBTCJOB-SDLSTRTDT, " Start-time
STARTTIME LIKE TBTCJOB-SDLSTRTTM, " window specs.
LASTSTARTDATE LIKE TBTCJOB-LASTSTRTDT,
LASTSTARTTIME LIKE TBTCJOB-LASTSTRTTM,
JOB_RELEASED LIKE BTCH0000-CHAR1. " JOB_CLOSE: Was
" job released?
*
* The data structures used by background jobs are:
* TBTCJOB: Job definition
* TBTCSTRT: Job start time (with function module
* BP_START_DATE_EDITOR)
*
* In any production job-scheduling program, you should call
* GET_PRINT_PARAMETERS to specify printing and archiving
* parameters. See