Skip to Content
author's profile photo Former Member
Former Member

last time batch job has run

hi

i have a report program which as date and time as parameters. i am scheduling this as batch job. i want to make the scheduling dynamic which means once the first batch job is finished, the next time time program should run with the values of last batch run date and time. is it possible to do this in the variant creation or we need to do it in the program.

thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 21, 2009 at 06:33 AM

    hi sudhakar,

    in the initialization event of your code,

    you can fetch the job details from TBTCO or TBTCP, you can also get it from view V_OP.

    after the select you can get the latest record of that job and pass the details accordingly to your selection screen parameters.

    hope this is helpful

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hey,

      How about scheduling the next job at the end of program itself. i.e Code can be written in End-Of-Selection of current program to schedule the next job with Date and Time (using syst) as desired.

      Regards,

      Nirmal

  • Posted on Sep 21, 2009 at 06:22 AM

    Hi,

    You can hadle this in the program itself. In the INITIALIZATION event of the report, assign the date and time parameters to the last batch run date and time.

    You can have a look at these tables to fetch the last run date and time of the batch job.

    TBTCA Subsequent relationship in batch job scheduling

    TBTCB Preceding relationship in batch job scheduling

    TBTCI Usage counter for the job's internal report

    TBTCO Job status overview table

    TBTCP Batch job step overview

    TBTCR Batch scheduler execution time

    TBTCS Batch schedule table

    Regards,

    Vikranth

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.