<?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: SYS$BATCH Job Scheduling in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/sys-batch-job-scheduling/m-p/5035978#M82638</link>
    <description>Joshua,&lt;BR /&gt;&lt;BR /&gt;to begin with,&lt;BR /&gt;&lt;BR /&gt;WELCOME to the VMS forum!.&lt;BR /&gt;&lt;BR /&gt;So, you already have a mechanism for resubmitting in place. Good.&lt;BR /&gt;&lt;BR /&gt;Replace that with something like this:&lt;BR /&gt;$ minute = &lt;PICK some=""&gt;&lt;BR /&gt;$ day = "today"&lt;BR /&gt;$ hour = f$cvtime("","","hour")&lt;BR /&gt;$ if hour .eqs. "23"&lt;BR /&gt;$ then&lt;BR /&gt;$ day = "tomorrow"&lt;BR /&gt;$ hour = "0"&lt;BR /&gt;$ else&lt;BR /&gt;$ hour = 'hour' + 1&lt;BR /&gt;$ endif&lt;BR /&gt;$ submit /after = "''day'+''hour':''minute'"&lt;BR /&gt;&lt;BR /&gt;( indentation spoiled by forum formatting :-( ,repair yourself! )&lt;BR /&gt;&lt;BR /&gt;--- untested!!! but you get the idea&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe&lt;BR /&gt;&lt;/PICK&gt;</description>
    <pubDate>Fri, 23 Mar 2007 14:16:35 GMT</pubDate>
    <dc:creator>Jan van den Ende</dc:creator>
    <dc:date>2007-03-23T14:16:35Z</dc:date>
    <item>
      <title>SYS$BATCH Job Scheduling</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-batch-job-scheduling/m-p/5035976#M82636</link>
      <description>&lt;BR /&gt;Is it possible to have a job run at every x minutes? By that, I mean run every hour but at the same minute?&lt;BR /&gt;&lt;BR /&gt;I've tried scheduling my job at the desired minute and having the first line of my job (resubmit itself +1:00) but the run time still tends to creep up over time.&lt;BR /&gt;&lt;BR /&gt;Is there a way to ensure that the job will always run at the exact same minute every hour?</description>
      <pubDate>Fri, 23 Mar 2007 13:52:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-batch-job-scheduling/m-p/5035976#M82636</guid>
      <dc:creator>Joshua Gould</dc:creator>
      <dc:date>2007-03-23T13:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: SYS$BATCH Job Scheduling</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-batch-job-scheduling/m-p/5035977#M82637</link>
      <description>I woudl probably just brute-force it.&lt;BR /&gt;In your resubmit calculatation just add the hour with f$cvtime to get the day transitions easily done. Then wack the minutes and seconds. Something like:&lt;BR /&gt;&lt;BR /&gt;$write sys$output f$extr(0,15,f$cvtime("+ 1:0:0","absolute")) + "12:34.56"&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Mar 2007 14:16:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-batch-job-scheduling/m-p/5035977#M82637</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-03-23T14:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: SYS$BATCH Job Scheduling</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-batch-job-scheduling/m-p/5035978#M82638</link>
      <description>Joshua,&lt;BR /&gt;&lt;BR /&gt;to begin with,&lt;BR /&gt;&lt;BR /&gt;WELCOME to the VMS forum!.&lt;BR /&gt;&lt;BR /&gt;So, you already have a mechanism for resubmitting in place. Good.&lt;BR /&gt;&lt;BR /&gt;Replace that with something like this:&lt;BR /&gt;$ minute = &lt;PICK some=""&gt;&lt;BR /&gt;$ day = "today"&lt;BR /&gt;$ hour = f$cvtime("","","hour")&lt;BR /&gt;$ if hour .eqs. "23"&lt;BR /&gt;$ then&lt;BR /&gt;$ day = "tomorrow"&lt;BR /&gt;$ hour = "0"&lt;BR /&gt;$ else&lt;BR /&gt;$ hour = 'hour' + 1&lt;BR /&gt;$ endif&lt;BR /&gt;$ submit /after = "''day'+''hour':''minute'"&lt;BR /&gt;&lt;BR /&gt;( indentation spoiled by forum formatting :-( ,repair yourself! )&lt;BR /&gt;&lt;BR /&gt;--- untested!!! but you get the idea&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe&lt;BR /&gt;&lt;/PICK&gt;</description>
      <pubDate>Fri, 23 Mar 2007 14:16:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-batch-job-scheduling/m-p/5035978#M82638</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2007-03-23T14:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: SYS$BATCH Job Scheduling</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-batch-job-scheduling/m-p/5035979#M82639</link>
      <description>&lt;!--!*#--&gt;$ runmin := 05  !Run at 5 minutes after hour&lt;BR /&gt;$ next_hour = f$cvtime("+0-1","ABSOLUTE")&lt;BR /&gt;$ rundate = f$cvtime(next_hour,"ABSOLUTE","DATE")&lt;BR /&gt;$ runhour = f$cvtime(next_hour,,"HOUR")&lt;BR /&gt;$ runtime = rundate+":"+runhour+":"+runmin&lt;BR /&gt;$ submit job /after='runtime'&lt;BR /&gt;&lt;BR /&gt;Good luck</description>
      <pubDate>Fri, 23 Mar 2007 14:17:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-batch-job-scheduling/m-p/5035979#M82639</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2007-03-23T14:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: SYS$BATCH Job Scheduling</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-batch-job-scheduling/m-p/5035980#M82640</link>
      <description>Something like:&lt;BR /&gt;&lt;BR /&gt;$ combtime = f$cvtim(,,"HOUR")+ -&lt;BR /&gt;  ":00:00+1:00:00"&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;$ combtime = f$cvtim(,"ABSOLUTE","DATE")+ -&lt;BR /&gt;":"+f$cvtim(,,"HOUR")+"00:00+1:00:00"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;comes to mind.&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Mar 2007 15:03:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-batch-job-scheduling/m-p/5035980#M82640</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-03-23T15:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: SYS$BATCH Job Scheduling</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-batch-job-scheduling/m-p/5035981#M82641</link>
      <description>&lt;BR /&gt;Thank you all for the help and advice! I have a good idea of how to adjust my script now.</description>
      <pubDate>Fri, 23 Mar 2007 15:04:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-batch-job-scheduling/m-p/5035981#M82641</guid>
      <dc:creator>Joshua Gould</dc:creator>
      <dc:date>2007-03-23T15:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: SYS$BATCH Job Scheduling</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-batch-job-scheduling/m-p/5035982#M82642</link>
      <description>Thank you all for the help!</description>
      <pubDate>Fri, 23 Mar 2007 15:04:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-batch-job-scheduling/m-p/5035982#M82642</guid>
      <dc:creator>Joshua Gould</dc:creator>
      <dc:date>2007-03-23T15:04:55Z</dc:date>
    </item>
  </channel>
</rss>

