Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2005 08:15 PM
06-19-2005 08:15 PM
$SUBMIT 'name' /AFTER="TOMORROW+23:30"/NOPRINT/KEEP/PARAMETERS=("''p1'")/LOG='logdir'
unfortunately, it happens irregularly...
thank you for any help
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2005 08:24 PM
06-19-2005 08:24 PM
Re: batch
can it be that it happens when you or someone else modifies the command file and purges the old version?
When you modify the file, you have to resubmit (version nr has changed and the submitted file no longer exists).
Rgds
Marc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2005 08:26 PM
06-19-2005 08:26 PM
Re: batch
in batch job SYS$INPUT is command file itself; it appears like submitted file is deleted.
Do you issue periodically purge command?
Antonio Vigliotti
P.S.
Martin, don't forget assign point in your old question :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2005 08:27 PM
06-19-2005 08:27 PM
Re: batch
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.
After editing you have to resubmit it. Or, if
edits are occuring quite often, submit an wrapper routine, which just calls the 'real' routine. Then you may edit all the way.
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2005 08:32 PM
06-19-2005 08:32 PM
Re: batch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2005 08:33 PM
06-19-2005 08:33 PM
Re: batch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2005 09:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2005 10:59 PM
06-19-2005 10:59 PM
Re: batch
I forgot to say, after exiting from the editor, delete the a.com;1
Undoubtably, you mean, DELETE the ;2 version!
After all, your whole intent is to have the original file ID with the new content.
Wim,
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.
Sorry, but I have to disagree!
SUBMIT stores the file-ID, not anything related with the name. Renaming to the old version does _NOT_ help!
OTOH, if you RENAME a submitted file to something completely different after SUBMITting, the job will still run.
fwiw
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2005 05:59 PM
06-20-2005 05:59 PM
Re: batch
SUBMIT/... F$ENVIRONMENT("PROCEDURE")
which ignores new versions if present. It is better to omit the version and have it to default to the highest one
SUBMIT/... F$ENVIRONMENT("PROCEDURE") - F$PARSE(F$ENVIRONMENT("PROCEDURE"),,,"VERSION")
A purge can then be done after the job has resubmittet itself.
Edwin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2005 06:02 PM
06-20-2005 06:02 PM
Re: batch
As has been noted, the system uses the file ID, not the file name to locate a submitted command procedure for execution.
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:
$ SUBMIT 'F$ENVIRONMENT("PROCEDURE") - /AFTER="TOMORROW+23:30"-
/NOPRINT/KEEP-
/PARAMETERS=("''p1'")/LOG=LOGDIR:
$ @
Since the "@" command is referencing the target file by name, not by file ID, it will always execute the latest version.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2005 06:22 PM
06-20-2005 06:22 PM
Re: batch
there are many people here had trouble with submition and purging files :-)
Another trouble, I remember, when a batch job is execute more times every day is version of logdir become 32767.
Antonio Vigliotti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2005 07:16 PM
06-20-2005 07:16 PM
Re: batch
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 :
.
.
.
$ < logdir definition >
$ name = f$environment("PROCEDURE")
$ goto 'f$mode()'
$ INTERACTIVE:
$ SUBMIT 'name' -
/AFTER="23:30" -
/NOPRINT/KEEP -
/PARAMETERS=("''p1'") -
/LOG='logdir'
$ exit
$ BATCH:
$ SUBMIT 'name' -
/AFTER="TOMORROW+23:30" -
/NOPRINT/KEEP -
/PARAMETERS=("''p1'") -
/LOG='logdir'
.
. < procedure body >
.
$ exit
To omit the problem with version number of log files the /VERSION_LIMIT=n qualifier has been set up for logdir.
Rgds, Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2005 07:31 PM
06-20-2005 07:31 PM
Re: batch
/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.
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2005 07:44 PM
06-20-2005 07:44 PM
Re: batch
/VERSION_LIM=n does NOT help in preventing the version number growing to 32767!
It is intended to prevent too many LOG-files, which might consume a lot of disk space.
You can best consider it as implementing an automatic PURGE/KEEP=n.
Any hew logfile keeps getting the next higher version number.
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.
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.
fwiw
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2005 07:59 PM
06-20-2005 07:59 PM
Re: batch
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.
It's true just Jan forgets to say "external" procedure.
Running batch can't rename logfile version by itself because it's in use :-(
Antonio Vigliotti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2005 09:44 PM
06-20-2005 09:44 PM
Re: batch
A running batch job is perfectly able to rename its own logfile!
If mode eq batch, our SYS$SYLOGIN checks IF logging is specified, and so, if the logfile TYPE is implicitly or explicitly ".LOG".
In those cases, it is renamed to .LOG_
In this works, at least since VMS 6.2 Vax/Alpha, until VMS7.3-2
No problem there!
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2005 02:34 AM
06-21-2005 02:34 AM
Re: batch
every day I discover some news here :-)
You are right, running batch is able to rename its log file!
I have to change some of my batch commands.
Thank you for informations.
Antonio Vigliotti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2005 04:29 AM
06-21-2005 04:29 AM
Re: batch
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2005 07:03 PM
06-21-2005 07:03 PM