cancel
Showing results for 
Search instead for 
Did you mean: 

XSJob set XSCRON from 22 to 01 am of the next day

Former Member
0 Kudos

Helly Everybody,

I have some issues regarding the xsjob scheduling. Is it possible to start a job from 22:00 until 1:00 am of the next day ?

If I write it like in that example, I cant activate the job in HANA. Is there a solution for that?

"xscron": "* * * * 20:01 * */10"

Thank you in advance!

Marcus

Accepted Solutions (0)

Answers (1)

Answers (1)

sagarjoshi
Advisor
Advisor
0 Kudos

Not tried but I guess this would solve your problem

  "xscron": "* * * * 20,21,23,0 * */10"

Former Member
0 Kudos

Hello Sagar,

unfortunetly thats not possible. you just can write two hours... for example

"xscron": "* * * 20,21 * */10"

otherwise it wont activate... =(

Any other idea ?

sagarjoshi
Advisor
Advisor
0 Kudos

Hi Marcus,

In your syntax one *  character is missing and that is why you may be getting activation error.

I tried on my system and the job was scheduled and it worked. I did not see yet if subsequent hours it is executed but I guess it should.

"xscron": "* * * * 0,17,18 * */10"

Thanks

Sagar

sagarjoshi
Advisor
Advisor
0 Kudos

I made a quick test by changing the second duration to 10,20,30,40 and it worked so it should work for hours in a similar fashion.

  "xscron": "* * * * 0,16,17,18 * 10,20,30,40"

Former Member
0 Kudos

Hi Sagar,

Well, I made that error in my second example but not in my HANA System.... I made a Scrrenshot... And as you see... I cant activate it =(

Do you see the error ? Thank you for your help!

sagarjoshi
Advisor
Advisor
0 Kudos

Hi Markus,

I dont think you have problem with syntax of xscron. The same syntax activates on my HANA SP8 version 80.

However I have seen such error even with correct syntax of xscron and I think this is some bug of editor when writing xsjob.

My suggestion may sound strange but give a try ...

Could you please try to modify the value of description field like try to shorten the text or avoid mis-spelled words (marked in red) and then try to activate.

If this does not work then I am clueless and if this is version specific problem and try raising a SAP support message for the same.

Thanks, Sagar