I have Sequence job.I want to Run the sequence job only on Sunday and Monday,other days sequence jobs needs abort.How to implement logic in the Sequence job.Please help me.
In execute command stage use below command
date +"%u" which will return the 0(Sunday) and in trigger check whether it is zero or not.If it is zero means trigger the Sequence
Thanks. I have Implemented in executed command Returned value = 0 OR 1 (this is one condition for executing next level sequence job). Returned value = 2 or 3 or 4 or 5 (teriminator the sequence job).
Job design is : Excued command -------Returned value is (=2 or 3 or 4 or 5) ----Teriminator activity ------------(again from executed command) ---Return value is 0 or 1 ----Job activity.
Probably invalid syntax. "Returned value = 0 OR 1" should in reality be "Returned value = 0 or returned value = 1" and I'm guessing it wasn't. That and the Field Mark you'd have to deal with in any Execute Command result.
-craig
"You can never have too many knives" -- Logan Nine Fingers