What is the difference between Reset and Clear Status file

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
singhald
Participant
Posts: 180
Joined: Tue Aug 23, 2005 2:50 am
Location: Bangalore
Contact:

What is the difference between Reset and Clear Status file

Post by singhald »

Hi All,

I want to know the difference between reseting a job and clear the status file using datastage director.
--if a job is in running status. we want to stop that job . should we use stop job or clear status file.

what does it means to claer a status file and reseting a job .

because when we reset a job it usually show some messages.
when we clear status file it also set the job in reset mode. but dont show any message axcept one message "clearing file RT_STATUSxx"

Can any one tell me something more about RESETING AND CLEARING STATUS FILE.

SINGHAL
Regards,
Deepak Singhal
Everything is okay in the end. If it's not okay, then it's not the end.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

A job is responsible for updating its own internal status, config, and log file during execution. If the job dies tragically, those files remain in their last state. Clearing the status is ONLY used to cleanup a job that didn't die gracefully. You can clear the status file while a job is running, which is a bad idea. Using kill -9 on a main job process is one way to cause this situation.

Resetting is used to put a job in a runnable state after it has gracefully "died". Not finding a file or bad SQL or bad connection or too many errors are still conditions that are handled by the job.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Clearing the status would be more dangerous than reseting. By CLEARing the status, the status might have turned to Reset, but at background the process would still be running or still have the connection open. Which will be one of the cause for a zombie process to be created. Which will inturn create cumbursome while restarting the server.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Have you read about each option in online help or in the manual (Director Guide (dsopsgde.pdf) )?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply