home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!inmos!bra.isnet.inmos.co.uk!npe.isnet.inmos.co.uk!isodonovan
- Newsgroups: comp.os.vms
- Subject: Re: ?Cause of error message under $SUBMIT
- Message-ID: <1992Sep1.102042.1@npe.isnet.inmos.co.uk>
- From: isodonovan@npe.isnet.inmos.co.uk
- Date: 1 Sep 92 10:20:42 GMT
- References: <1992Aug28.130419.1@woods.ulowell.edu>
- Organization: Inmos Limited
- Nntp-Posting-Host: gnbstx
- Nntp-Posting-User: netnonpriv
- Lines: 57
-
- In article <1992Aug28.130419.1@woods.ulowell.edu>, welchb@woods.ulowell.edu writes:
- > Here is the error message I often get from a simple .com file
- > when it is $SUBMITted:
- > Error opening primary file SYS$INPUT
- > File not found
-
- [...]
-
- The chances are you'll get many responses to this. When I've encountered this
- before it's been due to submitting a file to a batch queue and then deleting
- the file. When you submit a file, the queue manager retains a pointer to the
- file (by name and file id number I think), it does not take a copy of the file
- - so the file still needs to be around when the job starts executing. If you
- create multiple versions of a file that you submit e.g. bat.com;1 ,;2, ;3 ...
- and either PURGE or have a version limit set, then the earlier versions will be
- deleted and when they come to the top of the queue, they will not be found.
-
- Also (sorry if this is going on a bit!) if you submit a file, then change it,
- it will be the OLD version that executes not the new one. Because the queue
- manager keeps a note of the file id, you cannot fool it into executing the new
- version - you'd have to delete the old job and resubmit, so again, you need to
- keep the old version aroud if you want it to run.
-
- If you have an application that creates temporary files to submit, the best
- thing I can think of is to ensure that they all have different names, so that
- they will not be lost by purging, or by a limit on the number of versions. One
- way of achieving this is to use the data & time (e.g. from F$CVTIME) as part of
- the filename. From memory, I think I tend to use
-
- yyyymmddhhmmsscc = F$CVTIME()-"-" -"-" -" " -":" -":" -"."
- to produce something like
- 1992090110171755
- which I then make part of the filename.
-
- You'll need to clean up these files (probably!) and funnily enough, they can be
- set to delete themselves if you put something like
-
- $ DELETE 'F$ENVIRONMENT("PROCEDURE")
-
- at the end of the command procedure.
-
- I hope this is of some use to you!
-
- -- Brian
-
- > --
- > Brendan Welch, UMass/Lowell, W1LPG, welchb@woods.ulowell.edu
- --
- ---------------------------------------/--------------------------------------
- Brian O'Donovan / 'o-Dzin Tridral
- eMail: Isodonovan@Isnet.Inmos.Co.Uk / "Sang-ngak-cho-dzong" -
- Phone: +44 633 810121 X384 / Tibetan Buddhist Group in the UK & US
- Mail : Inmos Ltd, Cardiff Road, / 5 Court Close, Whitchurch, Cardiff,
- Newport, Wales, UK, NP9 1YJ / Wales, UK, CF4 1JR
- ---------------------------------------/--------------------------------------
- "No one's ever come back to say there *isn't* a life after death"
- ---------------------------------------/--------------------------------------
-