<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to schedule command procedure to run daily in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242346#M40047</link>
    <description>The Brit&amp;gt;&amp;gt;&lt;BR /&gt;one problem that happened here was system reboot on monday and the&lt;BR /&gt;queue remains in stopped state. my script does not run on monday.&lt;BR /&gt;i later start the queue. but then the script has not run on monday and hence&lt;BR /&gt;would not have scheduled itself to run on tuesday.&lt;BR /&gt;manual work required here to schedule my script again.&lt;BR /&gt;&lt;BR /&gt;Mike Kier&amp;gt;&amp;gt;&lt;BR /&gt;#By decoupling into a second procedure, you can change it as often&lt;BR /&gt;# as you need and it will be picked up by the next scheduled run&lt;BR /&gt;this sounds good. even if my script change, the latest version get &lt;BR /&gt;scheduled.&lt;BR /&gt;&lt;BR /&gt;Scotty</description>
    <pubDate>Sun, 06 Jun 2010 11:46:15 GMT</pubDate>
    <dc:creator>Scotty HD</dc:creator>
    <dc:date>2010-06-06T11:46:15Z</dc:date>
    <item>
      <title>how to schedule command procedure to run daily</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242334#M40035</link>
      <description>how to schedule command procedure to run daily&lt;BR /&gt;&lt;BR /&gt;i have one command procedure and need to execute it daily at 1:00.&lt;BR /&gt;&lt;BR /&gt;now i written com procedure in such a way that it schedules itself&lt;BR /&gt;again on next day. this way the com procedure recursive schedules&lt;BR /&gt;itself to run everyday at 1:00.&lt;BR /&gt;&lt;BR /&gt;there was nothing in SUBMIT command for recursive execute daily.&lt;BR /&gt;&lt;BR /&gt;is there better way ?&lt;BR /&gt;&lt;BR /&gt;Scotty</description>
      <pubDate>Thu, 03 Jun 2010 14:30:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242334#M40035</guid>
      <dc:creator>Scotty HD</dc:creator>
      <dc:date>2010-06-03T14:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to schedule command procedure to run daily</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242335#M40036</link>
      <description>&lt;A href="http://labs.hoffmanlabs.com/node/501" target="_blank"&gt;http://labs.hoffmanlabs.com/node/501&lt;/A&gt;</description>
      <pubDate>Thu, 03 Jun 2010 14:33:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242335#M40036</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2010-06-03T14:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to schedule command procedure to run daily</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242336#M40037</link>
      <description>hoff&amp;gt;&amp;gt;&lt;BR /&gt;is it like this&lt;BR /&gt;# only one main scheduler job that run daily.&lt;BR /&gt;# this main scheduler job that run daily and schedules all other job like x1, x2, x3 ...&lt;BR /&gt;  based on their requirement.&lt;BR /&gt;&lt;BR /&gt;the main scheduler task that run daily, how to schedule that!&lt;BR /&gt;&lt;BR /&gt;Scotty</description>
      <pubDate>Thu, 03 Jun 2010 14:47:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242336#M40037</guid>
      <dc:creator>Scotty HD</dc:creator>
      <dc:date>2010-06-03T14:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to schedule command procedure to run daily</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242337#M40038</link>
      <description>in the link&lt;BR /&gt;--&amp;gt;Caturday, err&lt;BR /&gt;is it typing mistake ?&lt;BR /&gt;&lt;BR /&gt;Scotty</description>
      <pubDate>Thu, 03 Jun 2010 14:50:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242337#M40038</guid>
      <dc:creator>Scotty HD</dc:creator>
      <dc:date>2010-06-03T14:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to schedule command procedure to run daily</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242338#M40039</link>
      <description>Scooty,&lt;BR /&gt;&lt;BR /&gt;You should explore using the BATCH facility that comes with VMS. &lt;BR /&gt;Basically create a command procedure that contains the commands that you want to run. Then use the below command to submit the procedure.&lt;BR /&gt;$ submit/after="tommorow+1:00:00" -&lt;BR /&gt;command_procedure_name.com ! resubmit&lt;BR /&gt;$! &lt;BR /&gt;$! rest of procedure follows...&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ketan&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Jun 2010 15:48:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242338#M40039</guid>
      <dc:creator>Shriniketan Bhagwat</dc:creator>
      <dc:date>2010-06-03T15:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to schedule command procedure to run daily</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242339#M40040</link>
      <description>The following is a more direct example than what I had posted:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://labs.hoffmanlabs.com/node/1476" target="_blank"&gt;http://labs.hoffmanlabs.com/node/1476&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and I've updated /501 with more links.&lt;BR /&gt;&lt;BR /&gt;I'd definitely look to replace this stuff; the default scheduling in VMS is weak; I know it is very frustrating to work with.  This frustration even if all you're accustomed to working with is Vixie cron.&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Jun 2010 16:22:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242339#M40040</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2010-06-03T16:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to schedule command procedure to run daily</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242340#M40041</link>
      <description>Scotty,&lt;BR /&gt;&lt;BR /&gt;Use ITRC's Forums advanced search for SUBMIT in the OpenVMS forum, you will see this is a common question.  Look for the link at the top of the page&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/james/searchForums.do?searchText=submit&amp;amp;searchCriteria=allwords&amp;amp;searchOptionITRC=true&amp;amp;searchCategoryITRC=OpenVMS&amp;amp;searchIn=entireThread&amp;amp;author=&amp;amp;threadType=0&amp;amp;datePosted=0&amp;amp;sortOption=rank&amp;amp;resultsPerPage=25&amp;amp;x=23&amp;amp;y=8" target="_blank"&gt;http://forums.itrc.hp.com/service/james/searchForums.do?searchText=submit&amp;amp;searchCriteria=allwords&amp;amp;searchOptionITRC=true&amp;amp;searchCategoryITRC=OpenVMS&amp;amp;searchIn=entireThread&amp;amp;author=&amp;amp;threadType=0&amp;amp;datePosted=0&amp;amp;sortOption=rank&amp;amp;resultsPerPage=25&amp;amp;x=23&amp;amp;y=8&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Here are a few relevant threads:&lt;BR /&gt;&lt;BR /&gt;submit DCL command question&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1237510" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1237510&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Submit com proc to batch que to run once a week?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1232913" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1232913&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Submit command (What is the command to submit a backup every 7 days from tomorrow onwards at 7am?)&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1098806" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1098806&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;---------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;If you were just wondering if there is any way to automatically repeat the submission at a period interval, the answer is no.&lt;BR /&gt;&lt;BR /&gt;The DCL SUBMIT command is just a DCL interface to the SYS$SNDJBC system service.  SYS$SNDJBC allows batch job to be submitted at a specific ABSOLUTE time, and there isn't any "REPEAT" capability built in.&lt;BR /&gt;&lt;BR /&gt;So your options are to have each command procedure compute the next run time, and then resubmit itself, or to have something running that will do the scheduling based on a list of jobs (as Hoff suggested).&lt;BR /&gt;&lt;BR /&gt;That "something" could be a batch job that resubmits itself every day, or a detached process running a scheduler like cron or kronos, etc.  cron or kronos are generally started in system startup and just run "all the time", but spend the vast majority of their time sleeping (HIB).&lt;BR /&gt;&lt;BR /&gt;OpenVMS Job Scheduler - Recomendations&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1064251" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1064251&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;A quick google search found this list of third party schedulers for OpenVMS&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://unix.derkeiler.com/Newsgroups/comp.os.vms/2008-05/msg00993.html" target="_blank"&gt;http://unix.derkeiler.com/Newsgroups/comp.os.vms/2008-05/msg00993.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;&lt;BR /&gt;Jon</description>
      <pubDate>Fri, 04 Jun 2010 00:23:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242340#M40041</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2010-06-04T00:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to schedule command procedure to run daily</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242341#M40042</link>
      <description>&lt;!--!*#--&gt;Hi Scotty,&lt;BR /&gt;    The method I use is as follows.   Right at the beginning of your script, add the lines;&lt;BR /&gt;&lt;BR /&gt;$       RSub_Time = f$cvtime("TOMORROW+08:00","ABSOLUTE",)&lt;BR /&gt;$!&lt;BR /&gt;$       Submit -&lt;BR /&gt;          /queue = &lt;BATCH queue="" name=""&gt;  -&lt;BR /&gt;          /After = "''RSub_Time'" -&lt;BR /&gt;          /Log =  LOGS_SCRATCH: -&lt;BR /&gt;          /NoPrint  -&lt;BR /&gt;          /User = &lt;IF necessary=""&gt; -&lt;BR /&gt;                     &lt;COMMAND file=""&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;it works for me.&lt;BR /&gt;&lt;BR /&gt;Dave&lt;/COMMAND&gt;&lt;/IF&gt;&lt;/BATCH&gt;</description>
      <pubDate>Fri, 04 Jun 2010 09:58:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242341#M40042</guid>
      <dc:creator>The Brit</dc:creator>
      <dc:date>2010-06-04T09:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to schedule command procedure to run daily</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242342#M40043</link>
      <description>Free advice...&lt;BR /&gt;&lt;BR /&gt;Once you have such procedure running, you may find the need to change it.&lt;BR /&gt;&lt;BR /&gt;Probably you already decide to parse the procedure name from F$GETQUI or F$ENVIRONMENT to select the highest versioned number, not the  current version for the next run.&lt;BR /&gt;&lt;BR /&gt;But what if you want to change the already submitted job? You can NOT just edit it nd put a next version, because the submit is by file-id, not by name.&lt;BR /&gt;&lt;BR /&gt;So you have to DELETE/ENTRY andre-submit, or use:&lt;BR /&gt;&lt;BR /&gt;$ COPY/OVER improved-job.com job.com&lt;BR /&gt;&lt;BR /&gt;That will replace the contents, for a file, keeping the file-id of the target.&lt;BR /&gt;&lt;BR /&gt;Hein&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Jun 2010 11:42:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242342#M40043</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2010-06-04T11:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to schedule command procedure to run daily</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242343#M40044</link>
      <description>Hoff&amp;gt;&amp;gt;&lt;BR /&gt;thanks for programs. i will try using them today.&lt;BR /&gt;&lt;BR /&gt;Shriniketan&amp;gt;&amp;gt; , The Brit&amp;gt;&amp;gt;&lt;BR /&gt;this is what i doing now.&lt;BR /&gt;but if for some reason if the command procedure does not run&lt;BR /&gt;(quota problem or whatever) on monday then it wont run on tuesday.&lt;BR /&gt;this create problems.&lt;BR /&gt;&lt;BR /&gt;Jon Pinkley&amp;gt;&amp;gt;&lt;BR /&gt;#If you were just wondering if there is any way to automatically repeat&lt;BR /&gt;#the submission at a period interval, the answer is no. &lt;BR /&gt;thanks. i wanted to hear this answer. i was looking for repeat capability.&lt;BR /&gt;&lt;BR /&gt;Hein&amp;gt;&amp;gt;&lt;BR /&gt;#But what if you want to change the already submitted job? You can NOT&lt;BR /&gt;## just edit nd put a next version, because the submit is by file-id,&lt;BR /&gt;# not by name.&lt;BR /&gt;thanks much. you answered question that i was about to post today.&lt;BR /&gt;every time i schedule batch job. i then modify the command procedure.&lt;BR /&gt;but every time my modification dont appear.&lt;BR /&gt;as you said, it always takes old file because it remember file-id not name&lt;BR /&gt;i will look at the lexical you given to see how i select always latest&lt;BR /&gt;command procedure to run. now i know what the mystery was.&lt;BR /&gt;#Free advice... &lt;BR /&gt;no. its magic advice.&lt;BR /&gt;this should save a lot of manual work everytime i change my command procedure.&lt;BR /&gt;&lt;BR /&gt;Scotty</description>
      <pubDate>Fri, 04 Jun 2010 15:44:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242343#M40044</guid>
      <dc:creator>Scotty HD</dc:creator>
      <dc:date>2010-06-04T15:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to schedule command procedure to run daily</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242344#M40045</link>
      <description>That is why is is submitted as the first step in the job.    Providing that the batch job actually starts, then it will always submit for tomorrow.&lt;BR /&gt;&lt;BR /&gt;The only things which will normally stop the job from starting are;&lt;BR /&gt;&lt;BR /&gt;1.  The submitted com file (version) is gone or not found.&lt;BR /&gt;2.  The Log file cannot be created (bad location or insufficient space.) &lt;BR /&gt;&lt;BR /&gt;Dave.</description>
      <pubDate>Fri, 04 Jun 2010 17:08:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242344#M40045</guid>
      <dc:creator>The Brit</dc:creator>
      <dc:date>2010-06-04T17:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to schedule command procedure to run daily</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242345#M40046</link>
      <description>The other trick is to use two command files.  &lt;BR /&gt;&lt;BR /&gt;The first just resubmits itself and then invokes the one to do the work, which is likely the one you need to change periodically.&lt;BR /&gt;&lt;BR /&gt;By decoupling into a second procedure, you can change it as often as you need and it will be picked up by the next scheduled run, or you can even stub it out with a dummy procedure for times when you don't want it to run but don't want to break the rescheduling.</description>
      <pubDate>Fri, 04 Jun 2010 17:44:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242345#M40046</guid>
      <dc:creator>Mike Kier</dc:creator>
      <dc:date>2010-06-04T17:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to schedule command procedure to run daily</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242346#M40047</link>
      <description>The Brit&amp;gt;&amp;gt;&lt;BR /&gt;one problem that happened here was system reboot on monday and the&lt;BR /&gt;queue remains in stopped state. my script does not run on monday.&lt;BR /&gt;i later start the queue. but then the script has not run on monday and hence&lt;BR /&gt;would not have scheduled itself to run on tuesday.&lt;BR /&gt;manual work required here to schedule my script again.&lt;BR /&gt;&lt;BR /&gt;Mike Kier&amp;gt;&amp;gt;&lt;BR /&gt;#By decoupling into a second procedure, you can change it as often&lt;BR /&gt;# as you need and it will be picked up by the next scheduled run&lt;BR /&gt;this sounds good. even if my script change, the latest version get &lt;BR /&gt;scheduled.&lt;BR /&gt;&lt;BR /&gt;Scotty</description>
      <pubDate>Sun, 06 Jun 2010 11:46:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242346#M40047</guid>
      <dc:creator>Scotty HD</dc:creator>
      <dc:date>2010-06-06T11:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to schedule command procedure to run daily</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242347#M40048</link>
      <description>Scotty,&lt;BR /&gt;&lt;BR /&gt;I would have expected the job that was scheduled to run on Monday would have started running immediately when the queue was restarted.  In other words, if a job was scheduled to run Monday, May 31, 2010 at 19:00, and the system was rebooted at 31-MAY-2010 18:00, but the queue was not restarted, the job entry would still be in the queue.  If the queue was restarted on Tuesday morning at 9:30 AM, I would have expected that entry to start running immediately, unless you took steps to prevent it.  If it did run, and scheduled itself to run "TOMORROW+19:00", then the next run would be on Wed, June 2, 2010 at 19:00.&lt;BR /&gt;&lt;BR /&gt;I have no idea how many queues you have, but to avoid the problem of queues being stopped after a system reboot, the normal method is to have the queues started either by something in sys$startup:systartup_vms.com or something it executes.&lt;BR /&gt;&lt;BR /&gt;We have logic in our startup to automatically recreate queues if they are not present.  This can be done by always using an initialize/queue in the startup.  If the queue already exists, it will not delete the entries that are already in the queue, but it will reset any properties that are specified in the initialize command, for example the /job_limit.&lt;BR /&gt;&lt;BR /&gt;If you want the queues to restart, you can just add /start to the initialize/queue command.&lt;BR /&gt;&lt;BR /&gt;VMS also has autostart queues that will start when autostart queues are enabled.&lt;BR /&gt;&lt;BR /&gt;However, even this isn't enough to handle every possible situation.  For example, what it the system was shutdown for an extended period of time, and the date changed during the shutdown?  Then you are going to have to build more into the command procedures (if they are doing the rescheduling).  I don't think that cron is immune to all problems either.  For example, what if the system is down when a job was schedule to start.  I would expect that job to just be skipped.&lt;BR /&gt;&lt;BR /&gt;The VMS queue tries not to loose entries, but this can lead to problems too.  For example, if a system is shutdown prior to a large overnight batch job, and restarted right before the start of the workday.  Unless some manual intervention is used, the job will start as soon as the queue is started, and that may not be the wanted behavior.&lt;BR /&gt;&lt;BR /&gt;Often designing command procedure and programs for the exceptional cases that occur infrequently, takes a large part of the programming time.&lt;BR /&gt;&lt;BR /&gt;Jon&lt;BR /&gt;</description>
      <pubDate>Sun, 06 Jun 2010 20:28:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242347#M40048</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2010-06-06T20:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to schedule command procedure to run daily</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242348#M40049</link>
      <description>Scotty,&lt;BR /&gt;&lt;BR /&gt;Generalizing on what Dave (The Brit) wrote:&lt;BR /&gt;&lt;BR /&gt;A batch process can't be created if it cannot open its input or output files.&lt;BR /&gt;&lt;BR /&gt;Some specific reasons follow (this probably still is not a complete list)&lt;BR /&gt;&lt;BR /&gt;1. can't open input file: submitted file has been deleted, or user has no read access to file (could be because it was renamed to a protected directory).&lt;BR /&gt;2. can't open log file: insufficient space (device full, quota exceeded - will not use overdraft), directory not found, directory full and can't be extended due to lack of contiguous space, highest legal version (;32767) of log file already exists, user does not have write access to directory.&lt;BR /&gt;&lt;BR /&gt;Easiest method to determine problem: use $ submit/retain=error ...&lt;BR /&gt;&lt;BR /&gt;Using /retain=error also has the advantage of leaving an indication that there was a problem. &lt;BR /&gt;&lt;BR /&gt;You can also use /retain=always or /retain=until=time ! absolute or delta (from completion)&lt;BR /&gt;&lt;BR /&gt;You can also use /notify to notify via a broadcast message when the job completes.&lt;BR /&gt;This will also give a more limited status.&lt;BR /&gt;The broadcast is sent to the username that the job is executing under, which is not necessarily the user that submitted the job.&lt;BR /&gt;The broadcast is sent with class QUEUE, so to receive the message, the user must be logged in, and the terminal must be set /broadcast and QUEUE broadcast must be enabled.&lt;BR /&gt;&lt;BR /&gt;Here is an example of submitting a job when disk quota has been exceeded on the log device:&lt;BR /&gt;&lt;BR /&gt;$ submit getqui/noprint/log=sys$scratch/que=sigma$batch/retain=err/notify&lt;BR /&gt;Job GETQUI (queue SIGMA$BATCH, entry 3007734) started on SIGMA$BATCH&lt;BR /&gt;$ &lt;BR /&gt;&lt;BR /&gt;Job GETQUI (queue SIGMA$BATCH, entry 3007734) terminated with error status&lt;BR /&gt;%RMS-E-CRE, ACP file create failed&lt;BR /&gt;$ show entry 3007734/full&lt;BR /&gt;  Entry  Jobname         Username     Blocks  Status&lt;BR /&gt;  -----  -------         --------     ------  ------&lt;BR /&gt;3007734  GETQUI          PINKLEY              Retained on error&lt;BR /&gt;       %RMS-E-CRE, ACP file create failed&lt;BR /&gt;       -RMS-E-CRE, ACP file create failed&lt;BR /&gt;       -SYSTEM-F-EXDISKQUOTA, disk quota exceeded&lt;BR /&gt;         On idle batch queue SIGMA$BATCH&lt;BR /&gt;         Submitted  6-JUN-2010 00:59:24.04 /KEEP /LOG=DSA1200:[USERS.][PINKLEY].LOG; /NOTIFY /NOPRINT /PRIORITY=100 /RETAIN=ERROR&lt;BR /&gt;         File: _DSA1200:[USERS.PINKLEY]GETQUI.COM;14&lt;BR /&gt;         Completed  6-JUN-2010 00:59:24.17 on queue SIGMA$BATCH&lt;BR /&gt;$ &lt;BR /&gt;&lt;BR /&gt;For more information:&lt;BR /&gt;&lt;BR /&gt;$ help submit/retain&lt;BR /&gt;$ help submit/notify&lt;BR /&gt;$ help set terminal/broadcast&lt;BR /&gt;$ help set broadcast&lt;BR /&gt;$ help show entry /by_job_status ! for info on show entry /by=retained&lt;BR /&gt;$ help show queue/by_job_status&lt;BR /&gt;$ help date ! to see how date/time can be specified &lt;BR /&gt;&lt;BR /&gt;Jon&lt;BR /&gt;</description>
      <pubDate>Sun, 06 Jun 2010 21:28:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242348#M40049</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2010-06-06T21:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to schedule command procedure to run daily</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242349#M40050</link>
      <description>Hi Scotty,&lt;BR /&gt;   You should still be OK, even if the system boots.    If the queue is stopped when the system boots then the job will wait until you start the queue and then execute normally, submitting for Tuesday (at normal time).&lt;BR /&gt;   If you dont want the job to execute on Monday, then just add the line,&lt;BR /&gt;&lt;BR /&gt;$ If (f$cvtime("Today",,"Weekday") .eqs. "Monday") then Exit&lt;BR /&gt;&lt;BR /&gt;RIGHT AFTER THE SUBMISSION COMMAND.&lt;BR /&gt;&lt;BR /&gt;This will cause the job to submit for normal time on Tuesday, and then exit.&lt;BR /&gt;&lt;BR /&gt;Dave.</description>
      <pubDate>Mon, 07 Jun 2010 11:43:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242349#M40050</guid>
      <dc:creator>The Brit</dc:creator>
      <dc:date>2010-06-07T11:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to schedule command procedure to run daily</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242350#M40051</link>
      <description>RE: The Brit&amp;gt;&amp;gt;&lt;BR /&gt;one problem that happened here was system reboot on monday and the&lt;BR /&gt;queue remains in stopped state. my script does not run on monday.&lt;BR /&gt;i later start the queue. but then the script has not run on monday and hence&lt;BR /&gt;would not have scheduled itself to run on tuesday.&lt;BR /&gt;manual work required here to schedule my script again.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;=======&lt;BR /&gt;&lt;BR /&gt;What we have done to cover the instance described above is to use the 2 procedure method and supply the "day" as a parameter to the "working" procedure. In this fashion you can test to be sure that the running procedure is for the correct day.  This will address the case where the machine goes down for a while and the batch jobs can get out of synch.&lt;BR /&gt;&lt;BR /&gt;Dan</description>
      <pubDate>Tue, 08 Jun 2010 18:49:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242350#M40051</guid>
      <dc:creator>abrsvc</dc:creator>
      <dc:date>2010-06-08T18:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to schedule command procedure to run daily</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242351#M40052</link>
      <description>thanks all for reply.&lt;BR /&gt;&lt;BR /&gt;Jon Pinkley&amp;gt;&amp;gt; , The Brit&amp;gt;&amp;gt;&lt;BR /&gt;i check my script again. from what you explain the job should start when&lt;BR /&gt;the queue get started again.&lt;BR /&gt;&lt;BR /&gt;Jon Pinkley&amp;gt;&amp;gt;&lt;BR /&gt;/retain=error is the change i did already. this is a good option.&lt;BR /&gt;thanks for the pointers.&lt;BR /&gt;&lt;BR /&gt;abrsvc&amp;gt;&amp;gt;&lt;BR /&gt;i will also plan for two command procedures. i will keep you point in mind.&lt;BR /&gt;&lt;BR /&gt;Scotty</description>
      <pubDate>Sat, 12 Jun 2010 11:34:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242351#M40052</guid>
      <dc:creator>Scotty HD</dc:creator>
      <dc:date>2010-06-12T11:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to schedule command procedure to run daily</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242352#M40053</link>
      <description>thanks all for reply&lt;BR /&gt;will do changes that has been recommended.&lt;BR /&gt;&lt;BR /&gt;Scotty</description>
      <pubDate>Sat, 12 Jun 2010 11:38:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-schedule-command-procedure-to-run-daily/m-p/5242352#M40053</guid>
      <dc:creator>Scotty HD</dc:creator>
      <dc:date>2010-06-12T11:38:59Z</dc:date>
    </item>
  </channel>
</rss>

