Auto Delete Jobs by Jobs State
Previous Topic  Next Topic 

The Delete Jobs by Job State can be executed from a batch or command file.  The format of the command is:


DeleteJobsByJobState=Job State 1;Job State 2; … Job State n


Where Job State 1, Job Sate 2 … Job State n is a list of the job states of the jobs to be deleted.  Each job state must be separated by a semi colon.  


When the command is executed in a batch or command file, the option to “Delete assembly structures as required” is automatically selected.


The following command line example executes DMS and performs the following commands:


  1. Auto logs into DMS using the user name DMS
  2. Logs into the database named DMSJobs
  3. Runs the command DeleteJobsByJobState and deletes jobs with a job state of Hold,  Forecast, and Rework
  4. Auto logs out of DMS.


Note that each command must be surrounded in quotations:


"C:\Dynafact\Production\DMS\DMSEnt.exe" "UserIniFolder=C:\Dynafact\Production\DMS\User\" "AutoUserName=DMS" "DatabaseName=DMSJobs" "DeleteJobsByJobState=Hold;Forecast;Rework" "AutoLogOut"