Setting a batch to run at a specific time.

 

 



 

 

 

My credit list is running in the afternoon instead of the morning.  Is there something I can do to get it run on Sunday night?

 

Review the entry in the que:

$ sho que/full/all sbr$batch

 Batch queue SBR$BATCH, idle, on ALPHA::

  Entry  Jobname         Username             Status

  -----  -------         --------             ------

    122  CREDITBAL       SBR_VAL              Holding until  7-MAR-2005 13:20:12 

         Submitted 28-FEB-2005 13:20:12.12 /KEEP /NOTIFY /NOPRINT /PRIORITY=100

         /RESTART=SBR$BATCH

         File: _ALPHA$DKA0:[SBR.EXE.SITE]CREDITBAL.COM;32

You want to set the entry to run at a different time of day.

$set entry/after= “7-MAR-2005 06:00:00”  122

If you want a different date, you can change that, too, but remember that the system uses 24-hour time. If you give it a date but no time, it will assume 1 second after midnight.

Because the last command line of the .com file reads as below,  the file will reque itself 7 days, to the second, after it begins to run.

$ SUBMIT/NOPRINT/NODEL/QUE=SBR$BATCH/AFTER="+7-"/RESTART SBRSYS_EXE:[SBR.EXE.SITE]CREDITBAL.COM