Command line Job Status Options?
Posted: Wed Dec 15, 2004 2:23 pm
What is the best method of getting the job status for a specific job once ran?
We are executing the job using dsjob from within a script file.
We have been told that the return code from the dsjob is not always accurate as to whether the job completed successfully or not.
To explicitly get the job status we query the job once run (dsjob -run -wait) to get its status. We use dsjob -jobinfo and parse the verbose results (multiple lines) and extract the job status, e.g., RUN OK, RUN FAILURE, etc.
We are upgrading to version 7.5 and wonder whether this is still the best way?
Best practices would be appreciated.
We are executing the job using dsjob from within a script file.
We have been told that the return code from the dsjob is not always accurate as to whether the job completed successfully or not.
To explicitly get the job status we query the job once run (dsjob -run -wait) to get its status. We use dsjob -jobinfo and parse the verbose results (multiple lines) and extract the job status, e.g., RUN OK, RUN FAILURE, etc.
We are upgrading to version 7.5 and wonder whether this is still the best way?
Best practices would be appreciated.