<?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: batch in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907994#M21202</link>
    <description>Antonio,&lt;BR /&gt;&lt;BR /&gt;A running batch job is perfectly able to rename its own logfile!&lt;BR /&gt;&lt;BR /&gt;If mode eq batch, our SYS$SYLOGIN checks IF logging is specified, and so, if the logfile TYPE is implicitly or explicitly ".LOG".&lt;BR /&gt;In those cases, it is renamed to .LOG_&lt;YYYYMMDD&gt;&lt;BR /&gt;In this works, at least since VMS 6.2 Vax/Alpha, until VMS7.3-2&lt;BR /&gt;&lt;BR /&gt;No problem there!&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;/YYYYMMDD&gt;</description>
    <pubDate>Tue, 21 Jun 2005 04:44:21 GMT</pubDate>
    <dc:creator>Jan van den Ende</dc:creator>
    <dc:date>2005-06-21T04:44:21Z</dc:date>
    <item>
      <title>batch</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907979#M21187</link>
      <description>hi, I have the following problem : there is a batch job running on Alpha server and it invokes a command procedure every day, but sometimes the batch job fails, the command procedure is not started and message "Error opening primary input file SYS$INPUT, file not found" is written to log file. The command procedure is submitted this way :&lt;BR /&gt;$SUBMIT 'name' /AFTER="TOMORROW+23:30"/NOPRINT/KEEP/PARAMETERS=("''p1'")/LOG='logdir'&lt;BR /&gt;unfortunately, it happens irregularly...&lt;BR /&gt;thank you for any help</description>
      <pubDate>Mon, 20 Jun 2005 03:15:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907979#M21187</guid>
      <dc:creator>Martin Kubes</dc:creator>
      <dc:date>2005-06-20T03:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: batch</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907980#M21188</link>
      <description>Hi Martin,&lt;BR /&gt;&lt;BR /&gt;can it be that it happens when you or someone else modifies the command file and purges the old version?&lt;BR /&gt;&lt;BR /&gt;When you modify the file, you have to resubmit (version nr has changed and the submitted file no longer exists).&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;Marc</description>
      <pubDate>Mon, 20 Jun 2005 03:24:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907980#M21188</guid>
      <dc:creator>Marc Van den Broeck</dc:creator>
      <dc:date>2005-06-20T03:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: batch</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907981#M21189</link>
      <description>Martin,&lt;BR /&gt;in batch job SYS$INPUT is command file itself; it appears like submitted file is deleted.&lt;BR /&gt;Do you issue periodically purge command?&lt;BR /&gt; &lt;BR /&gt;Antonio Vigliotti&lt;BR /&gt; &lt;BR /&gt;P.S.&lt;BR /&gt;Martin, don't forget assign point in your old question :-)&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Jun 2005 03:26:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907981#M21189</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2005-06-20T03:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: batch</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907982#M21190</link>
      <description>Martin,&lt;BR /&gt;&lt;BR /&gt;may be you edited the submitted procedure and purged the old version away? The queuing systems knows the file-id of the submitted command file and tries to invoke exactly that version.&lt;BR /&gt;&lt;BR /&gt;After editing you have to resubmit it. Or, if&lt;BR /&gt;edits are occuring quite often, submit an wrapper routine, which just calls the 'real' routine. Then you may edit all the way.&lt;BR /&gt;&lt;BR /&gt;regards Kalle</description>
      <pubDate>Mon, 20 Jun 2005 03:27:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907982#M21190</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2005-06-20T03:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: batch</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907983#M21191</link>
      <description>as Marc has said, it seems that somebody created a new version after submitting it and deleted the .com submitted. Test it yourself, create a file a.com with just "$ sh time", submit it with $ subm/after=later, edit your com file, modify it or not, but EXIT from your favorite editor, release your batch job, you will have your error message. Now if you do the same, but after editing, do $ copy/overlay a.com;2 a.com;1 , it will work fine.</description>
      <pubDate>Mon, 20 Jun 2005 03:32:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907983#M21191</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2005-06-20T03:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: batch</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907984#M21192</link>
      <description>I forgot to say, after exiting from the editor, delete the a.com;1</description>
      <pubDate>Mon, 20 Jun 2005 03:33:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907984#M21192</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2005-06-20T03:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: batch</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907985#M21193</link>
      <description>Note that the file number is taken by submit, not the file name. So, if you delete and recreate the file (with same version number) the job will still fail. Rename is however allowed bevause that doesn't change the file number.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Mon, 20 Jun 2005 04:56:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907985#M21193</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2005-06-20T04:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: batch</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907986#M21194</link>
      <description>Gerard,&lt;BR /&gt;&lt;BR /&gt;&lt;QUOTE&gt;&lt;BR /&gt;I forgot to say, after exiting from the editor, delete the a.com;1 &lt;BR /&gt;&lt;/QUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;Undoubtably, you mean, DELETE the ;2 version!&lt;BR /&gt;After all, your whole intent is to have the original file ID with the new content.&lt;BR /&gt;&lt;BR /&gt;Wim,&lt;BR /&gt;&lt;QUOTE&gt;&lt;BR /&gt;Note that the file number is taken by submit, not the file name. So, if you delete and recreate the file (with same version number) the job will still fail. Rename is however allowed bevause that doesn't change the file number.&lt;BR /&gt;&lt;/QUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;Sorry, but I have to disagree!&lt;BR /&gt;SUBMIT stores the file-ID, not anything related with the name. Renaming to the old version does _NOT_ help!&lt;BR /&gt;OTOH, if you RENAME a submitted file to something completely different after SUBMITting, the job will still run.&lt;BR /&gt;&lt;BR /&gt;fwiw&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;BR /&gt;</description>
      <pubDate>Mon, 20 Jun 2005 05:59:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907986#M21194</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-06-20T05:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: batch</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907987#M21195</link>
      <description>Another common problem in this area is that may procedures resubmit themself using&lt;BR /&gt;&lt;BR /&gt;SUBMIT/... F$ENVIRONMENT("PROCEDURE")&lt;BR /&gt;&lt;BR /&gt;which ignores new versions if present. It is better to omit the version and have it to default to the highest one&lt;BR /&gt;&lt;BR /&gt;SUBMIT/... F$ENVIRONMENT("PROCEDURE") - F$PARSE(F$ENVIRONMENT("PROCEDURE"),,,"VERSION")&lt;BR /&gt;&lt;BR /&gt;A purge can then be done after the job has resubmittet itself.&lt;BR /&gt;&lt;BR /&gt;Edwin</description>
      <pubDate>Tue, 21 Jun 2005 00:59:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907987#M21195</guid>
      <dc:creator>Edwin Gersbach_2</dc:creator>
      <dc:date>2005-06-21T00:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: batch</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907988#M21196</link>
      <description>Martin,&lt;BR /&gt;&lt;BR /&gt;  As has been noted, the system uses the file ID, not the file name to locate a submitted command procedure for execution.&lt;BR /&gt;&lt;BR /&gt;  If you have a batch job with a procedure that's edited regularly, it may be better to nest it inside another procedure (which never changes). Put the resubmission stuff in the outer procedure. Something like this:&lt;BR /&gt;&lt;BR /&gt;$ SUBMIT 'F$ENVIRONMENT("PROCEDURE") - /AFTER="TOMORROW+23:30"-&lt;BR /&gt; /NOPRINT/KEEP-&lt;BR /&gt; /PARAMETERS=("''p1'")/LOG=LOGDIR:&lt;BR /&gt;$ @&lt;REAL-PROCEDURE&gt;&lt;BR /&gt;&lt;BR /&gt;Since the "@" command is referencing the target file by name, not by file ID, it will always execute the latest version.&lt;BR /&gt;&lt;BR /&gt;&lt;/REAL-PROCEDURE&gt;</description>
      <pubDate>Tue, 21 Jun 2005 01:02:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907988#M21196</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2005-06-21T01:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: batch</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907989#M21197</link>
      <description>Mhm,&lt;BR /&gt;there are many people here had trouble with submition and purging files :-)&lt;BR /&gt;Another trouble, I remember, when a batch job is execute more times every day is version of logdir become 32767.&lt;BR /&gt; &lt;BR /&gt;Antonio Vigliotti&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Jun 2005 01:22:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907989#M21197</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2005-06-21T01:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: batch</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907990#M21198</link>
      <description>Thanks all,&lt;BR /&gt;the submitted command file has been under development for some time, so it has been edited very often, now it has been finished, resubmitted and running ok. I have used this construction :&lt;BR /&gt;&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;$ &amp;lt; logdir definition &amp;gt;&lt;BR /&gt;$ name = f$environment("PROCEDURE")&lt;BR /&gt;$ goto 'f$mode()'&lt;BR /&gt;$ INTERACTIVE:&lt;BR /&gt;$ SUBMIT 'name' -&lt;BR /&gt;         /AFTER="23:30" -&lt;BR /&gt;         /NOPRINT/KEEP -&lt;BR /&gt;         /PARAMETERS=("''p1'") -&lt;BR /&gt;         /LOG='logdir'&lt;BR /&gt;$ exit&lt;BR /&gt;$ BATCH:&lt;BR /&gt;$ SUBMIT 'name' -&lt;BR /&gt;         /AFTER="TOMORROW+23:30" -&lt;BR /&gt;         /NOPRINT/KEEP -&lt;BR /&gt;         /PARAMETERS=("''p1'") -&lt;BR /&gt;         /LOG='logdir'&lt;BR /&gt;.&lt;BR /&gt;. &amp;lt; procedure body &amp;gt;&lt;BR /&gt;.&lt;BR /&gt;$ exit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To omit the problem with version number of log files the /VERSION_LIMIT=n qualifier has been set up for logdir.&lt;BR /&gt;Rgds, Martin</description>
      <pubDate>Tue, 21 Jun 2005 02:16:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907990#M21198</guid>
      <dc:creator>Martin Kubes</dc:creator>
      <dc:date>2005-06-21T02:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: batch</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907991#M21199</link>
      <description>Martin,&lt;BR /&gt;&lt;BR /&gt;/VERSION_LIMIT will not resolve the version number limit. Maybe, you get more troubles with it. For example if you have version limit 2 and run 3 batch jobs, the third will terminate complaining that it can not open primary output.&lt;BR /&gt;&lt;BR /&gt;Bojan</description>
      <pubDate>Tue, 21 Jun 2005 02:31:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907991#M21199</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2005-06-21T02:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: batch</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907992#M21200</link>
      <description>Martin,&lt;BR /&gt;&lt;BR /&gt;/VERSION_LIM=n does NOT help in preventing the version number growing to 32767!&lt;BR /&gt;&lt;BR /&gt;It is intended to prevent too many LOG-files, which might consume a lot of disk space.&lt;BR /&gt;&lt;BR /&gt;You can best consider it as implementing an automatic PURGE/KEEP=n.&lt;BR /&gt;&lt;BR /&gt;Any hew logfile keeps getting the next higher version number.&lt;BR /&gt;If you have one logfile per day, than you will have to do something about that in about 90 years time, so no immedeate need to worry.&lt;BR /&gt;If you have one logfile every, say, 5 minutes, then you better have the procedure itself test the logfile version numbers, and after some threshold rename them down.&lt;BR /&gt;&lt;BR /&gt;fwiw&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;</description>
      <pubDate>Tue, 21 Jun 2005 02:44:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907992#M21200</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-06-21T02:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: batch</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907993#M21201</link>
      <description>&lt;QUOTE&gt;&lt;BR /&gt;If you have one logfile every, say, 5 minutes, then you better have the procedure itself test the logfile version numbers, and after some threshold rename them down.&lt;BR /&gt;&lt;/QUOTE&gt;&lt;BR /&gt;It's true just Jan forgets to say "external" procedure.&lt;BR /&gt;Running batch can't rename logfile version by itself because it's in use :-(&lt;BR /&gt; &lt;BR /&gt;Antonio Vigliotti&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Jun 2005 02:59:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907993#M21201</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2005-06-21T02:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: batch</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907994#M21202</link>
      <description>Antonio,&lt;BR /&gt;&lt;BR /&gt;A running batch job is perfectly able to rename its own logfile!&lt;BR /&gt;&lt;BR /&gt;If mode eq batch, our SYS$SYLOGIN checks IF logging is specified, and so, if the logfile TYPE is implicitly or explicitly ".LOG".&lt;BR /&gt;In those cases, it is renamed to .LOG_&lt;YYYYMMDD&gt;&lt;BR /&gt;In this works, at least since VMS 6.2 Vax/Alpha, until VMS7.3-2&lt;BR /&gt;&lt;BR /&gt;No problem there!&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;/YYYYMMDD&gt;</description>
      <pubDate>Tue, 21 Jun 2005 04:44:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907994#M21202</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-06-21T04:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: batch</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907995#M21203</link>
      <description>Jan,&lt;BR /&gt;every day I discover some news here :-)&lt;BR /&gt;You are right, running batch is able to rename its log file!&lt;BR /&gt;I have to change some of my batch commands.&lt;BR /&gt;Thank you for informations.&lt;BR /&gt;  &lt;BR /&gt;Antonio Vigliotti&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Jun 2005 09:34:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907995#M21203</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2005-06-21T09:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: batch</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907996#M21204</link>
      <description>Here's a command procedure that I've been using for quite a while to let a batch job clean up its own log files.  It also works for jobs in network and detached mode but depends on the freeware PPF or Process Permanent File utility.&lt;BR /&gt;&lt;BR /&gt;Robert</description>
      <pubDate>Tue, 21 Jun 2005 11:29:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907996#M21204</guid>
      <dc:creator>Robert_Boyd</dc:creator>
      <dc:date>2005-06-21T11:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: batch</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907997#M21205</link>
      <description>discovered a solution to a problem</description>
      <pubDate>Wed, 22 Jun 2005 02:03:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/batch/m-p/4907997#M21205</guid>
      <dc:creator>Martin Kubes</dc:creator>
      <dc:date>2005-06-22T02:03:59Z</dc:date>
    </item>
  </channel>
</rss>

