Sequencer
Moderators: chulett, rschirm, roy
Sequencer
If my job sequencer aborts for any reason then the temporary status file created has to be deleted otherwise the sequencer aborts again and again.
i have jobs in my sequencer and using routine activity stage for jobaudit, so whenever the sequencer fails, a temp status file has to be deleted otherwise sequencer does not run,
Any suggestions.
Thank you
i have jobs in my sequencer and using routine activity stage for jobaudit, so whenever the sequencer fails, a temp status file has to be deleted otherwise sequencer does not run,
Any suggestions.
Thank you
More details needed...
- How and when is this 'temporary status file' created?
- What is the dependency of this 'temporary status file' and the failure of the job?
If you don't want this file to exist, you could do a check for its existance and nuke it off each time you begin your job.
P.S. It is sequence not sequencer.
- How and when is this 'temporary status file' created?
- What is the dependency of this 'temporary status file' and the failure of the job?
If you don't want this file to exist, you could do a check for its existance and nuke it off each time you begin your job.
P.S. It is sequence not sequencer.
Narasimha Kade
Finding answers is simple, all you need to do is come up with the correct questions.
Finding answers is simple, all you need to do is come up with the correct questions.
Thanks Chulett and Narasimha..
will I be using a routine "GetJobStats" ? and do I have to create routine for all jobs in my Job sequence ?
I am already using a routine "failureforce" after each job aborts, so I need to add another routine activity stage after "forcefailure" routine stage which will check for job status and delete temp status file...right?
Appreciate any help in this regard,
will I be using a routine "GetJobStats" ? and do I have to create routine for all jobs in my Job sequence ?
I am already using a routine "failureforce" after each job aborts, so I need to add another routine activity stage after "forcefailure" routine stage which will check for job status and delete temp status file...right?
Appreciate any help in this regard,
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
How about an ExecuteCommand (do not skip) activity at the front of the job sequence?
Code: Select all
test -f #pathname# && rm -f #pathname#
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ray.wurlod wrote:How about an ExecuteCommand (do not skip) activity at the front of the job sequence?...Code: Select all
test -f #pathname# && rm -f #pathname#
Thanks for the post Ray..
rm -fr would remove all files in a directory and the directory itself, what does rm -f do? I am asking this because I have a temp directory created after sequencer aborts and a staus file is created ( which is not in the temp directory). so I have to get rid of both of them.
The execute command stage would be in the start of the sequencer and can you explain me the whole code please..
Thanks
ray.wurlod wrote:How about an ExecuteCommand (do not skip) activity at the front of the job sequence?
...Code: Select all
test -f #pathname# && rm -f #pathname#
Hi all,
When trying to delete my status file using the above syntax I am getting this info message in director
Reply=126
Output from command ====>
test: /usr/bin/test: cannot execute binary file
can anyone help pls.
thanks
I have one command activity stage and one job activity.
Just want to delete status file before the job activity stage runs.
the message in director is
seq_delstatfile..JobControl (@Exec_Comm): Executed: 'sh' test -f /home/edw/delstatus.txt && rm -f /home/edw/delstatus.txt
Reply=126
Output from command ====>
test: /usr/bin/test: cannot execute binary file
Event #:43
Timestamp:7/9/2007 12:15:07 PM
Event type:Info
User:user1
Message:
seq_delstatfile..JobControl (@Coordinator): Summary of sequence run
12:12:31: Sequence started
12:12:31: Exec_Comm (COMMAND 'sh') started
12:12:31: Exec_Comm finished, reply=126
12:12:31: Job_Act (JOB job1) started
12:15:07: Job_Act (JOB job1) finished, status=2 [Finished with warnings]
12:15:07: Sequence finished OK
Thanks
Just want to delete status file before the job activity stage runs.
the message in director is
seq_delstatfile..JobControl (@Exec_Comm): Executed: 'sh' test -f /home/edw/delstatus.txt && rm -f /home/edw/delstatus.txt
Reply=126
Output from command ====>
test: /usr/bin/test: cannot execute binary file
Event #:43
Timestamp:7/9/2007 12:15:07 PM
Event type:Info
User:user1
Message:
seq_delstatfile..JobControl (@Coordinator): Summary of sequence run
12:12:31: Sequence started
12:12:31: Exec_Comm (COMMAND 'sh') started
12:12:31: Exec_Comm finished, reply=126
12:12:31: Job_Act (JOB job1) started
12:15:07: Job_Act (JOB job1) finished, status=2 [Finished with warnings]
12:15:07: Sequence finished OK
Thanks
You don't need the sh here.
Just execute
You should be fine. (Parameterize as required)
Just execute
Code: Select all
test -f /home/edw/delstatus.txt && rm -f /home/edw/delstatus.txt
Narasimha Kade
Finding answers is simple, all you need to do is come up with the correct questions.
Finding answers is simple, all you need to do is come up with the correct questions.
narasimha wrote:You don't need the sh here.
Just executeYou should be fine. (Parameterize as required)Code: Select all
test -f /home/edw/delstatus.txt && rm -f /home/edw/delstatus.txt
Thankyou very much all of you ....it works.
What if I also had a directory and it was in the same path folder in which I have the delstatus.txt file, and I want to get rid of the directory also. will I need two execute command stages before job activity or I can perform it in same execute command stage.
You could do it as a part of the same activity, just append
to your command (Assuming you want to remove edw directory)
Code: Select all
&& rm -r /home/edw
Narasimha Kade
Finding answers is simple, all you need to do is come up with the correct questions.
Finding answers is simple, all you need to do is come up with the correct questions.