Skip to Content
avatar image
Former Member

How to schedule an irregular job?

Hi experts,

I am using SM36 to schedule jobs. Do you know if there is a way to not run a job for a month and start over. e.g. If a job is scheduled to  run monthly for indefinite time then is there a way to stop the job not to run for the months of Dec.?

Regards,

Pankaj

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jan 09, 2015 at 08:23 AM

    I suggest two ways to get this done:

    1. Create a Z factory calender and mark whole Dec as holiday and Run job based on this Factory calender as Job parameter

    2. Consider "After Event" job parameter. Create an event ZABC. Code to trigger this event ZABC from your another new ZXYZ program (Schedule ZXYZ on your required schedule) when Month <> Dec using IF-ELSE construct. e.g.

    if month <> Dec.

         trigger_event.

    else.

         " Do nothing

    endif.

    Now create your required job to run after ZABC event.

    Please reward if useful. Thanks.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 09, 2015 at 07:49 AM

    Hi Pankaj

    As far as I know, I dont think there is a way to skip one particular run of a periodic batch job. I suppose you will have to stop the batch job in the month that you dont need it. And then later schedule it again when you want to start.

    Add comment
    10|10000 characters needed characters exceeded