<?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: submit causing infinite loop in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774657#M41510</link>
    <description>&lt;!--!*#--&gt;&amp;gt; Doesn't the "+13" mean 13 days?&lt;BR /&gt;&lt;BR /&gt;Apparently not.  Remember this?:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I just checked your time string via lexical&lt;BR /&gt;&amp;gt; f$cvtime()and it returned the time I would&lt;BR /&gt;&amp;gt; expect.&lt;BR /&gt;&lt;BR /&gt;That could have been taken as educational.&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;alp $ write sys$output f$cvtime( "today")&lt;BR /&gt;2011-04-08 00:00:00.00&lt;BR /&gt;&lt;BR /&gt;alp $ write sys$output f$cvtime( "today+13")&lt;BR /&gt;2011-04-08 13:00:00.00&lt;BR /&gt;&lt;BR /&gt;Seems to be +13 hours.  On the other hand:&lt;BR /&gt;&lt;BR /&gt;alp $ write sys$output f$cvtime( "today+13-")&lt;BR /&gt;2011-04-21 00:00:00.00&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;      HELP Date_Time&lt;BR /&gt;&lt;BR /&gt;Pay particular attention to "Combination" and&lt;BR /&gt;"Delta".&lt;BR /&gt;&lt;BR /&gt;And, of course:&lt;BR /&gt;&lt;BR /&gt;      HELP Lexicals F$CVTIME</description>
    <pubDate>Sat, 09 Apr 2011 01:43:02 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2011-04-09T01:43:02Z</dc:date>
    <item>
      <title>submit causing infinite loop</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774640#M41493</link>
      <description>Hi:&lt;BR /&gt;I tried coding some dcl to resubmit itself for three days in the future at 2:00 in the morning...the job wound up looping, submitting thousands of jobs to the que...What's the correct way to do this?  I had...&lt;BR /&gt;&lt;BR /&gt;submit.../after="tomorrow+2-2:00"&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Jeff S</description>
      <pubDate>Wed, 06 Apr 2011 20:52:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774640#M41493</guid>
      <dc:creator>Jeff Shulmister</dc:creator>
      <dc:date>2011-04-06T20:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: submit causing infinite loop</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774641#M41494</link>
      <description>&lt;!--!*#--&gt;&amp;gt; submit.../after="tomorrow+2-2:00"&lt;BR /&gt;&lt;BR /&gt;Are you sure that that's what you (or your&lt;BR /&gt;procedure) did?  Around here, that seems to&lt;BR /&gt;work as expected:&lt;BR /&gt;&lt;BR /&gt;alp $ sub harmless.com /after = "tomorrow+2-02:00"&lt;BR /&gt;Job harmless (queue SYS$BATCH_ALP, entry 17) holding until  9-APR-2011 02:00</description>
      <pubDate>Wed, 06 Apr 2011 21:10:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774641#M41494</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-04-06T21:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: submit causing infinite loop</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774642#M41495</link>
      <description>I just checked your time string via lexical f$cvtime()and it returned the time I would expect.&lt;BR /&gt;&lt;BR /&gt;Did you test this from within the self-submitting batch job?  Maybe the cause of the looping can be found there.</description>
      <pubDate>Wed, 06 Apr 2011 21:17:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774642#M41495</guid>
      <dc:creator>John McL</dc:creator>
      <dc:date>2011-04-06T21:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: submit causing infinite loop</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774643#M41496</link>
      <description>Jeff,&lt;BR /&gt;&lt;BR /&gt;  "TOMORROW+2-2:00" seems reasonable to me.&lt;BR /&gt;&lt;BR /&gt;  What's the rest of the SUBMIT command?&lt;BR /&gt;&lt;BR /&gt;Do some testing with a minimal job:&lt;BR /&gt;&lt;BR /&gt;RESUBMIT_TEST.COM&lt;BR /&gt;$ SET VERIFY&lt;BR /&gt;$ self=F$PARSE(";",F$ENVIRONMENT("PROCEDURE"))&lt;BR /&gt;$ WAIT 00:01:00&lt;BR /&gt;$ SUBMIT 'self' /whatever you like&lt;BR /&gt;$ SHOW ENTRY/FULL '$ENTRY'&lt;BR /&gt;$ EXIT&lt;BR /&gt;&lt;BR /&gt;The WAIT should give you time to break a submit loop. Wait for the job to finish, then see if the next one is scheduled as you expect. If it starts immediately, just delete the entry. You can also break a loop with:&lt;BR /&gt;&lt;BR /&gt;$ CREATE RESUBMIT_TEST.COM&lt;BR /&gt;$ EXIT&lt;BR /&gt;^Z&lt;BR /&gt;&lt;BR /&gt;(because "self" is defined as the latest version of the file, which is always a good idea for a self re-submitting job)&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Apr 2011 21:59:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774643#M41496</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2011-04-06T21:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: submit causing infinite loop</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774644#M41497</link>
      <description>Are you operating your batch queues in a cluster, and are the system times of the cluster member nodes (badly) skewed?&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Apr 2011 22:14:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774644#M41497</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2011-04-06T22:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: submit causing infinite loop</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774645#M41498</link>
      <description>Hi Jeff,&lt;BR /&gt;    In addition to the responses above, can you;   1)  add a "set verify" at the start of the job, and then post the section covering the submit, from the batch job logfile.   This will give us the complete submit command, and show what response you got from the system when the batch job re-submits itself.&lt;BR /&gt;&lt;BR /&gt;Dave.&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Apr 2011 10:04:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774645#M41498</guid>
      <dc:creator>The Brit</dc:creator>
      <dc:date>2011-04-07T10:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: submit causing infinite loop</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774646#M41499</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;Here is a 'simple' error to cause the /AFTER not to be qualifier and thus the job to re-execute immediately. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ subm tmp.com/para="test  /after=tomorrow&lt;BR /&gt;:&lt;BR /&gt;$ SHOW ENTRY/FULL ...  /PARAM=("test  /after=tomorrow")&lt;BR /&gt;&lt;BR /&gt;This still first the definition of your command. So yeah... show us the EXACT command please!&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Apr 2011 11:18:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774646#M41499</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2011-04-07T11:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: submit causing infinite loop</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774647#M41500</link>
      <description>Well, I wanted to avoid sending this whole script because it's pretty ugly -- but the answer is in here somewhere.  The submit is inside a loop, so the first thought is that it's just inside an infinite loop. However, there are two submits -- one that executes Mon thru Thurs, and one for Friday.  And only when it does the Friday submit, does it get stuck creating infinite entries in the que. &lt;BR /&gt;&lt;BR /&gt;What's going on in the loop is that it's attempting to see if the job is already in the que.  If not, then it will submit the job, and if it is already there, then it won't.  At least, that's the intent.  Here's the complete DCL...&lt;BR /&gt;The loop starts on the Qsearch1 label:&lt;BR /&gt;&lt;BR /&gt;$ set noverify&lt;BR /&gt;$ on error then goto write_error&lt;BR /&gt;$ setup hprod&lt;BR /&gt;$ set def sys$scratch&lt;BR /&gt;$ today = f$cvtime(f$time(),,"weekday")&lt;BR /&gt;$ day = f$cvtime(f$time(),,"day")&lt;BR /&gt;$ show time&lt;BR /&gt;$ if day .eqs. "01" .or. day .eqs. "02" .or. day .eqs. "03" .or. day .eqs. "04" &lt;BR /&gt;-&lt;BR /&gt;   then goto end_process&lt;BR /&gt;$ quiz auto=star_exe:check_lockbox_purge.qzc&lt;BR /&gt;$ show sym purge_okay&lt;BR /&gt;$ show sym beg_range&lt;BR /&gt;$ show sym end_range&lt;BR /&gt;$ if purge_okay .eqs. "N" then goto end_process&lt;BR /&gt;$ purge_range == "''beg_range',''end_range'"&lt;BR /&gt;$ show sym purge_range&lt;BR /&gt;$ qtp auto=star_exe:purge_lockbox_range.qtc&lt;BR /&gt;$ submit/noprint/log=star_log/que=sys$batch -    &lt;BR /&gt;   star_com:convert_lockbox_arc_files.com&lt;BR /&gt;$ define distrib_name distrib_fm_error&lt;BR /&gt;$ @star_com:distrib_mail.com -&lt;BR /&gt;     "PURGE_LOCKBOX_RANGE.COM completed" -&lt;BR /&gt;      sys$scratch:TRANSMITTAL_MSG.TXT&lt;BR /&gt;$ write sys$output "Purge completed"&lt;BR /&gt;$ end_process:&lt;BR /&gt;$ show sym today&lt;BR /&gt;$ context = f$getqui("CANCEL_OPERATION")&lt;BR /&gt;$ qname = f$getqui("DISPLAY_QUEUE","QUEUE_NAME","ERNIE_BATCH","WILDCARD")&lt;BR /&gt;$ qsearch_1:&lt;BR /&gt;$    jname = -                                                      &lt;BR /&gt;   f$getqui("DISPLAY_JOB","JOB_NAME",,"ALL_JOBS,TIMED_RELEASE_JOBS")&lt;BR /&gt;$    if jname .eqs. "PURGE_LOCKBOX_RANGE" &lt;BR /&gt;$        then goto eoj&lt;BR /&gt;$    endif&lt;BR /&gt;$    if jname .eqs. "" &lt;BR /&gt;$        then if today .eqs. "Friday" then goto Friday&lt;BR /&gt;$             submit/noprint/que=ernie_batch/log=sys$scratch: -&lt;BR /&gt;                   /after="tomorrow+02:00" -&lt;BR /&gt;                   star_root:[com]purge_lockbox_range.com&lt;BR /&gt;$             goto eoj&lt;BR /&gt;$ Friday:&lt;BR /&gt;$             submit/noprint/que=ernie_batch/log=sys$scratch: -&lt;BR /&gt;                   /after="tomorrow+2-02:00" -&lt;BR /&gt;                   star_root:[com]purge_lockbox_range.com&lt;BR /&gt;$             goto eoj   ;  342394&lt;BR /&gt;$     endif&lt;BR /&gt;$ goto qsearch_1  ! 342409&lt;BR /&gt;$ eoj:&lt;BR /&gt;$   type prd$command:[command]success.msg&lt;BR /&gt;$   delete TRANSMITTAL_MSG.TXT;*&lt;BR /&gt;$ exit&lt;BR /&gt;$ write_error:&lt;BR /&gt;$   wso " "&lt;BR /&gt;$   define distrib_name distrib_fm_error&lt;BR /&gt;$   @star_com:distrib_mail.com -&lt;BR /&gt;     "PURGE_LOCKBOX_RANGE.COM failed, see log for details"&lt;BR /&gt;$   type prd$command:[command]failure.msg&lt;BR /&gt;$   wso " "&lt;BR /&gt;$   exit 2</description>
      <pubDate>Thu, 07 Apr 2011 14:45:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774647#M41500</guid>
      <dc:creator>Jeff Shulmister</dc:creator>
      <dc:date>2011-04-07T14:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: submit causing infinite loop</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774648#M41501</link>
      <description>My first suggestion would be to change the label EOJ to something else (End_job maybe).  EOJ is a valid DCL command and perhaps the CLI is getting a bit confused.  It is a simple change and should be easy to test.  Notice that only the "Friday" codeflow is close to that label.  &lt;BR /&gt;&lt;BR /&gt;Let us know what happens.&lt;BR /&gt;&lt;BR /&gt;Dan</description>
      <pubDate>Thu, 07 Apr 2011 14:57:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774648#M41501</guid>
      <dc:creator>abrsvc</dc:creator>
      <dc:date>2011-04-07T14:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: submit causing infinite loop</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774649#M41502</link>
      <description>Hey thanks guys thanks for focusing me on the "eoj" -- I think I actually see the problem!  &lt;BR /&gt;&lt;BR /&gt;It looks like there's an invalid comment in the Friday section, on the "goto eoj"... (should have an '!' rather than a ';'.&lt;BR /&gt;&lt;BR /&gt;So, if that line is being ignored, then it will just keep going back to qsearch1!</description>
      <pubDate>Thu, 07 Apr 2011 15:09:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774649#M41502</guid>
      <dc:creator>Jeff Shulmister</dc:creator>
      <dc:date>2011-04-07T15:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: submit causing infinite loop</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774650#M41503</link>
      <description>Jeff,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;  there's an invalid comment in the Friday section&lt;BR /&gt;&lt;BR /&gt;  That would do it. But there should be an error message in the log file:&lt;BR /&gt;&lt;BR /&gt;%DCL-W-MAXPARM, too many parameters - reenter command with fewer parameters&lt;BR /&gt;&lt;BR /&gt;  Looking at your script, here's a few suggestions that may make debugging easier (though, being a programming language, there will be many alternative opinions).&lt;BR /&gt;&lt;BR /&gt;  I try to avoid hard coded file specifications. F$PARSE is your friend. If you're talking about the procedure itself, use:&lt;BR /&gt;&lt;BR /&gt;$ self=F$PARSE(";",F$ENVIRONMENT("PROCEDURE"))&lt;BR /&gt;&lt;BR /&gt;  The semi colon is to remove the version number. This will remain correct regardless of where you move the procedure, or even if you rename it.&lt;BR /&gt;&lt;BR /&gt;  You can then use "self" to locate related files if they live in the same directory. For example:&lt;BR /&gt;&lt;BR /&gt;$ arc_files=F$PARSE("convert_lockbox_arc_files",self)&lt;BR /&gt;&lt;BR /&gt;$ @'F$PARSE("DISTRIB_MAIL",self)' SYS$SCRATCH:TRANSMITTAL_MSG.TXT&lt;BR /&gt;&lt;BR /&gt;This kind of coding becomes natural, and it makes it trivially easy to move code around, or between systems, as it removes local dependencies.&lt;BR /&gt; &lt;BR /&gt; When dealing with different actions depending on the day of the week, the easiest construct is:&lt;BR /&gt;&lt;BR /&gt;$ GOSUB 'F$CVTIME(,,"WEEKDAY")'&lt;BR /&gt;$!   Other stuff&lt;BR /&gt;$ EXIT&lt;BR /&gt;$ &lt;BR /&gt;$ Monday:&lt;BR /&gt;$ Tuesday:&lt;BR /&gt;$ Wednesday:&lt;BR /&gt;$ Thursday:&lt;BR /&gt;$&lt;BR /&gt;$  ! Processing for Mon-Thur&lt;BR /&gt;$ &lt;BR /&gt;$ RETURN&lt;BR /&gt;$&lt;BR /&gt;$ Friday:&lt;BR /&gt;$  ! Processing for Fri&lt;BR /&gt;$ RETURN&lt;BR /&gt;$&lt;BR /&gt;$ Saturday:&lt;BR /&gt;$ Sunday:&lt;BR /&gt;$ RETURN&lt;BR /&gt;&lt;BR /&gt;You could do something similar with "DAY" but that would be rather a lot of labels. Maybe turn it around and use GTS instead of individual tests?&lt;BR /&gt;&lt;BR /&gt;$ IF 'F$CVTIME(,,"DAY").GTS."04" &lt;BR /&gt;$ THEN &lt;BR /&gt;$   ! stuff to do &amp;gt; 04&lt;BR /&gt;$ ENDIF ! Your label end_process &lt;BR /&gt;&lt;BR /&gt;3) Perhaps overkill in this case, but when you have something selectable from a small set, like a day name, a table can sometimes be clearer and easier to maintain than an IF-THEN tree. For example:&lt;BR /&gt;&lt;BR /&gt;$ OnMonday="TOMORROW+2-02:00"&lt;BR /&gt;$ OnTuesday=OnMonday&lt;BR /&gt;$ OnWednesday=OnMonday&lt;BR /&gt;$ OnThursday=OnMonday&lt;BR /&gt;$ OnFriday="TOMORROW+02:00"&lt;BR /&gt;$ OnSaturday=""&lt;BR /&gt;$ OnSunday=""&lt;BR /&gt;&lt;BR /&gt;Now, let the code select itself:&lt;BR /&gt;&lt;BR /&gt;$ after=On'F$CVTIME(,,"WEEKDAY")'&lt;BR /&gt;$ IF after.NES."" THEN SUBMIT 'self' /AFTER="''after'" /whatever&lt;BR /&gt;&lt;BR /&gt;This may not be the correct logic for your job, but hopefully you get the idea. You only write one SUBMIT command, and it's very easy to have different times depending on the day. We can also block resubmission on particular days.&lt;BR /&gt;&lt;BR /&gt;That said, rather than try to code the execution schedule in advance by submitting jobs at different intervals, it's often easier to just run the job at the same time every day, and decide if something should be done when it starts to execute. That means it's safe to submit at any time.&lt;BR /&gt;&lt;BR /&gt; I also do my resubmit at the becinning of the job. This helps reduce the risk of something going wrong during the job causing it to abort before the resubmit and breaking the chain. Thus:&lt;BR /&gt;&lt;BR /&gt;$ IF F$MODE().EQS."BATCH" THEN SUBMIT 'self'/AFTER="TOMORROW+02:00"&lt;BR /&gt;$&lt;BR /&gt;$ ! Work out circumstances, date, day etc...&lt;BR /&gt;$ ! maybe use GOTO 'F$CVTIME(,,"WEEKDAY")&lt;BR /&gt;$ ! or:&lt;BR /&gt;$ IF NothingToDo THEN EXIT&lt;BR /&gt;$ &lt;BR /&gt;$ ! Do stuff&lt;BR /&gt;&lt;BR /&gt;To determine if there's another copy of yourself already scheduled you don't need to scan the whole queue. For the case of jobs owned by yourself DISPLAY_ENTRY is a shortcut. Consider:&lt;BR /&gt;&lt;BR /&gt;$ me=F$GETQUI("DISPLAY_ENTRY","ENTRY_NUMBER",,"THIS_JOB")&lt;BR /&gt;$ myname=F$GETQUI("DISPLAY_ENTRY","JOB_NAME",,"THIS_JOB")&lt;BR /&gt;$ IF myname.EQS."" THEN myname=F$PARSE(self,,,"NAME")&lt;BR /&gt;$ CheckLoop: e=F$GETQUI("DISPLAY_ENTRY","ENTRY_NUMBER",myname,"WILDCARD")&lt;BR /&gt;$ IF e.NES."".AND.e.NE.me THEN GOTO CheckLoop&lt;BR /&gt;$ IF e.EQS.""&lt;BR /&gt;$ THEN&lt;BR /&gt;$   ! No matching job scheduled&lt;BR /&gt;$ ELSE&lt;BR /&gt;$   ! Found job with entry number e&lt;BR /&gt;$ ENDIF&lt;BR /&gt;&lt;BR /&gt;Note that this code doesn't hardcode the job name. It also works for interactive mode as "me" will be blank, and we've assumed the job name will be the same as the procedure name.&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Apr 2011 21:12:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774650#M41503</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2011-04-07T21:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: submit causing infinite loop</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774651#M41504</link>
      <description>Thanks John...great info!</description>
      <pubDate>Thu, 07 Apr 2011 21:35:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774651#M41504</guid>
      <dc:creator>Jeff Shulmister</dc:creator>
      <dc:date>2011-04-07T21:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: submit causing infinite loop</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774652#M41505</link>
      <description>There is an "on error.." on top which includes warnings as well. So the bogus DCL line warning should cause a jump to label write_error.&lt;BR /&gt;&lt;BR /&gt;/Guenther</description>
      <pubDate>Thu, 07 Apr 2011 21:42:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774652#M41505</guid>
      <dc:creator>GuentherF</dc:creator>
      <dc:date>2011-04-07T21:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: submit causing infinite loop</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774653#M41506</link>
      <description>I am surprised...the "on error" is not honored for a DCL error. Is that a new feature?&lt;BR /&gt;&lt;BR /&gt;With that in mind the bogus "goto" line can cause the loop.&lt;BR /&gt;&lt;BR /&gt;/Guenther</description>
      <pubDate>Thu, 07 Apr 2011 22:09:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774653#M41506</guid>
      <dc:creator>GuentherF</dc:creator>
      <dc:date>2011-04-07T22:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: submit causing infinite loop</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774654#M41507</link>
      <description>GF: ON uses equal or greater matching.&lt;BR /&gt;&lt;BR /&gt;ON ERROR catches ERROR and SEVERE (FATAL) errors.&lt;BR /&gt;&lt;BR /&gt;ON WARNING catches WARNING, ERROR, and SEVERE/FATAL.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Apr 2011 22:41:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774654#M41507</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2011-04-07T22:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: submit causing infinite loop</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774655#M41508</link>
      <description>Thanks Hoff! I had this mixed up. Some deprivation of VMS contact.&lt;BR /&gt;&lt;BR /&gt;/Guenther</description>
      <pubDate>Fri, 08 Apr 2011 14:37:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774655#M41508</guid>
      <dc:creator>GuentherF</dc:creator>
      <dc:date>2011-04-08T14:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: submit causing infinite loop</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774656#M41509</link>
      <description>Ok here's a test I ran today.  This just kept resubmitting itself over and over...&lt;BR /&gt;I thought this was going to go in the que, holding for two weeks from now, but it acted as if it was probably just waiting till one PM -- and, since it was already after 1 PM when I submitted it, it just kept resubmitting itself.&lt;BR /&gt;&lt;BR /&gt;Doesn't the "+13" mean 13 days?&lt;BR /&gt;===========================================&lt;BR /&gt;strsrv&amp;gt; type test1.com&lt;BR /&gt;$ submit test1.com/notify/noprint/keep/que=sys$batch/log=star_log/-&lt;BR /&gt;   after="today+13"&lt;BR /&gt;$ exit&lt;BR /&gt;==========================================&lt;BR /&gt;</description>
      <pubDate>Sat, 09 Apr 2011 01:10:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774656#M41509</guid>
      <dc:creator>Jeff Shulmister</dc:creator>
      <dc:date>2011-04-09T01:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: submit causing infinite loop</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774657#M41510</link>
      <description>&lt;!--!*#--&gt;&amp;gt; Doesn't the "+13" mean 13 days?&lt;BR /&gt;&lt;BR /&gt;Apparently not.  Remember this?:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I just checked your time string via lexical&lt;BR /&gt;&amp;gt; f$cvtime()and it returned the time I would&lt;BR /&gt;&amp;gt; expect.&lt;BR /&gt;&lt;BR /&gt;That could have been taken as educational.&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;alp $ write sys$output f$cvtime( "today")&lt;BR /&gt;2011-04-08 00:00:00.00&lt;BR /&gt;&lt;BR /&gt;alp $ write sys$output f$cvtime( "today+13")&lt;BR /&gt;2011-04-08 13:00:00.00&lt;BR /&gt;&lt;BR /&gt;Seems to be +13 hours.  On the other hand:&lt;BR /&gt;&lt;BR /&gt;alp $ write sys$output f$cvtime( "today+13-")&lt;BR /&gt;2011-04-21 00:00:00.00&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;      HELP Date_Time&lt;BR /&gt;&lt;BR /&gt;Pay particular attention to "Combination" and&lt;BR /&gt;"Delta".&lt;BR /&gt;&lt;BR /&gt;And, of course:&lt;BR /&gt;&lt;BR /&gt;      HELP Lexicals F$CVTIME</description>
      <pubDate>Sat, 09 Apr 2011 01:43:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774657#M41510</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-04-09T01:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: submit causing infinite loop</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774658#M41511</link>
      <description>Steven, thanks for that tip.  I never thought of using that lexical to check the value I was loading into the parameter.  I'm DEFINATELY adding that to my arsenal!&lt;BR /&gt;&lt;BR /&gt;And John G, also, thanks for the tip on how to test and break the loop.  Not being sure exactly what was going to happen, I've always been a little scared to use this parameter.  One of those things I thought I didn't even want to test, simply because of what could happen when the test failed.  You guys have given me the tools I need on this now, tho, so many thanks!</description>
      <pubDate>Sat, 09 Apr 2011 13:57:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/submit-causing-infinite-loop/m-p/4774658#M41511</guid>
      <dc:creator>Jeff Shulmister</dc:creator>
      <dc:date>2011-04-09T13:57:23Z</dc:date>
    </item>
  </channel>
</rss>

