Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Queue Job fail with error "Error opening primary input file SYS$INPUT"

 
Ricky Pardede
Occasional Advisor

Queue Job fail with error "Error opening primary input file SYS$INPUT"

Dear VMS User,

I made 1 queue job.
Sometime it is OK, sometime failed to execute.

The error I get is "Error opening primary input file SYS$INPUT".

Anybody can advise me to troubleshoot ?

Reading and editing the file is normal.
4 REPLIES 4
Thomas Ritter
Respected Contributor

Re: Queue Job fail with error "Error opening primary input file SYS$INPUT"

Just a guess, but maybe the command procedure you wanted to execute had been deleted. VMS using version numbers.

Try Submit the job on hold.
$ show entry/full

$ dir command_procedure

Does the command procedure exist ?

Phil.Howell
Honored Contributor

Re: Queue Job fail with error "Error opening primary input file SYS$INPUT"

doesn't the job retain the file-id of the command file?
After the submit, the file must have been deleted or purged, or otherwise unavailable to the queue manager.
Is this on a single node or cluster?
Phil










?
if
Thomas Ritter
Respected Contributor

Re: Queue Job fail with error "Error opening primary input file SYS$INPUT"

Try this
TEST> sub/hold a.com
Job A (queue SYS_BATCH_TEST, entry 4684) holding
TEST> sh ent/full 4684
Entry Jobname Username Blocks Status
----- ------- -------- ------ ------
4684 A SYSTEM Holding
On idle batch queue SYS_BATCH_TEST
Submitted 12/09/08 14:42:45.60 /KEEP /LOG=DSA67:[SYS_USERS.][SYSTEM]BATCH.LOG; /NOTIFY /NOPRINT /PRIORITY=100
File: _DSA67:[SYS_USERS.SYSTEM]A.COM;132
TEST> DIR _DSA67:[SYS_USERS.SYSTEM]A.COM;132

Directory _DSA67:[SYS_USERS.SYSTEM]

A.COM;132

Total of 1 file.
Volker Halle
Honored Contributor

Re: Queue Job fail with error "Error opening primary input file SYS$INPUT"

Ricky,

this typically happens, if you edit the DCL command procedure, that you've submitted as a batch job, before it gets executed and you then purge the old versions, which are still pending for batch execution.

The OpenVMS queue manager internally uses the FILD ID of the procedure and not - as one could assume - the file specification (excluding the version number).

Volker.