BeispieldokumentationProgrammbeispiel: Sofort-Start mit JOB_CLOSE

 

Syntax Syntax

  1. * 
    * Submit job for processing: immediate start 
    * 
    CALL FUNCTION 'JOB_CLOSE' 
    EXPORTING 
    JOBCOUNT = JOBNUMBER " Job identification: number 
    JOBNAME = JOBNAME " and name. 
    STRTIMMED = 'X' " Schedules the job for 
    " immediate start. The job 
    " is started immediately 
    " only if the user has the 
    " RELE authorization to 
    " release a job to run. 
    IMPORTING 
    JOB_WAS_RELEASED = JOB_RELEASED " If user has authorization 
    " to release jobs to run, job 
    " is automatically released 
    " when it is scheduled. This 
    " field is set to 'x' if the 
    " job has been released. 
    " Otherwise, the job is sche- 
    " duled but must be released 
    " by an administrator before 
    " it can be started. 
    EXCEPTIONS 
    * CANT_START_IMMEDIATE No longer used. Replaced by IMPORTING 
    * parameter JOB_WAS_RELEASED. 
    INVALID_STARTDATE = 01 
    JOBNAME_MISSING = 02 
    JOB_CLOSE_FAILED = 03 
    JOB_NOSTEPS = 04 
    JOB_NOTEX = 05 
    LOCK_FAILED = 06 
    OTHERS = 99. 
    
    IF SY-SUBRC > 0. 
    <Error processing> 
    ENDIF.
    
Ende des Codes