cancel
Showing results for 
Search instead for 
Did you mean: 

How to schedule an irregular job?

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Thanks U Gupta.I will work with the developer to fix the issue.    

ShrutiJoshi
Active Contributor
0 Kudos

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.