1832320 Members
1966 Online
110041 Solutions
New Discussion

Batch queue

 
how to create batich qu
Occasional Contributor

Batch queue

Hi,

plz tell me how to create a batch queue in OVMS?

The Queue manager is already running.
$ SHOW QUE/MANA/FULL
Master file: SYS$SYSROOT:[SYSEXE]QMAN$MASTER.DAT;

Queue manager SYS$QUEUE_MANAGER, running, on ABACUS::
/ON=(*)
Database location: SYS$COMMON:[SYSEXE]

But im not sure how to create the batch queue.
i got the this error while submitting the batch queue.
-----------------------------------
$ submit/notify 1213640757_fetch.txt
%SUBMIT-F-CREJOB, error creating job
-JBC-E-NOSUCHQUE, no such queue
----------------------------------

bye
Ramesh
10 REPLIES 10
Joseph Huber_1
Honored Contributor

Re: Batch queue

If no queue is specified in a SUBMIT command, the logical SYS$BATCH is translated and used as the destination queue.
If there is no such logical, the queue SYS$BATCH is used, if one exists.

So in Your case first do a SHOW LOG SYS$BATCH .
If not existing, do a SHOW QUEUE * to see if the system has queues at all.

If none at all, then if You are a system manager, use INIT/QUEUE/BATCH to create a queue, else ask the sysmgr which queues are accessible and why there is no SYS$BATCH queue or logical.

There was a discussion last year in ITRC about the pros and cons of having a common sys$batch, or an individual node_batch queue defined by logical sys$batch, or a generic sys$batch.
It depends on the cluster-structure/uniformity what should be preferred.

For a standalone system, there I would prefer an execution queue defined by
INIT/QUEUE/BATCH SYS$BATCH
http://www.mpp.mpg.de/~huber
Hoff
Honored Contributor

Re: Batch queue

Text files (.TXT, by default) are not usually submitted to batch queues.

DCL command procedures (.COM, by default) are.

The baseline batch queue creation command is:

INITIALIZE /QUEUE /BATCH /START [queue-name]

Privileges are required. Usually OPER.

The default batch queue name is SYS%BATCH, though sites will regularly not have that queue and will redirect access to other queues by defining a SYS$BATCH logical name.

There will probably be other qualifiers needed.

The time taken to skim the System Managers' Manual: Essentials book in the OpenVMS documentation set and (for information on creating DCL command procedures) the OpenVMS User's Guide will also save you time and effort.

And if that command does not permit you to submit to the queue, issue SHOW SYMBOL SUBMIT and SHOW LOGICAL SYS$BATCH, and post the output here.

Stephen Hoffman
HoffmanLabs LLC
Hein van den Heuvel
Honored Contributor

Re: Batch queue

Ramesh,

Welcome to the OpenVMS forum.

Please consider picking a more reasonable forum name and sticking to just that one.

When you give a $SUBMIT command it targets the batch queue SYS$BATCH.

You can create that with $INIT /QUEUE

Please use $HELP QUEUE for an quick overview of all queue related command and then drill down further with help for the details: $HELP INIT /QUEUE

Hope this helps some,
Hein van den Heuvel (at gmail dot com)
HvdH Performance Consulting

Jan van den Ende
Honored Contributor

Re: Batch queue

Ramesh,

to begin with:

Welcome to the VMS forum.

Second, you had better enter "my Profile", choose EDIT, and replace "how to create batich queue in OVMS " into Ramesh (or whatever you like to be named here)

As for your question.

First try
$ show queue /batch
to find out if any batch queues are available (obviously, the default SYS$BATCH is not)

As with any VMS problem
$ HELP is your best friend.
try
$ HELP INIT /QUIEU
and then look through the documenteation for creating (print & ) batch queues.

The simplest command that satisfies your wishes would be
$ init queue/batch sys$batch
but the HELP gives all kind of info to make the queue more to your specific needs.

btw, if $ SHOW QUEU /BATCH _does_ displat other batch(es) running, than you may well only have to modify your SUBMIT command with /QUE=

hth

Proost.

Have one on me.

jpe

Don't rust yours pelled jacker to fine doll missed aches.
Arch_Muthiah
Honored Contributor

Re: Batch queue

Ramesh,

The START/QUEUE command restarts a queue that has been stopped or paused.
You must create the queue with the INITIALIZE/QUEUE command before you can use the START/QUEUE command.
To create and start the queue at the same time, use the INITIALIZE/QUEUE/START command.

Do go through this docs...
http://h71000.www7.hp.com/doc/73final/6017/6017pro_054.html#bottom_054
and
http://h71000.www7.hp.com/DOC/731FINAL/4477/4477pro_012.html

Archunan

Regards
Archie
Arch_Muthiah
Honored Contributor

Re: Batch queue

Oops! Ramesh you need to add /BATCH qualifier for batch queue(execution que), and add /generic for generic queue.


Archunan
Regards
Archie
how to create batich qu
Occasional Contributor

Re: Batch queue

Hi,

Thanks for ur updae...and i hav one more
problem also...

I hav created the batch queue's are

$ show queue/batch

Batch queue QUEUE, idle, on ABACUS::
Batch queue SYS$BATCH, idle, on ABACUS::

if i give this submit job command..
$ submit/notify 1213640757_fetch.txt

Its submitted in the SYS$BATCH queue.
But i need to submit in the another queue called QUEUE.
Please tell me how to submit it into another queue.

After submit the job ..,

$ show queue/batch
Batch queue QUEUE, idle, on ABACUS::

Batch queue SYS$BATCH, busy, on ABACUS::

Entry Jobname Username Status
----- ------- -------- ------
17 1213640757_FETCH
SYSTEM Executing

after this job i got this status like

Job 1213640757_FETCH (queue SYS$BATCH, entry 17) terminated with error status

So please tell me how can i see this error details and where i can see??

and also tell me how can i submit this job into another Queue called 'QUEUE'.

bye
Ramesh
Jon Pinkley
Honored Contributor

Re: Batch queue

>>>So please tell me how can i see this error details and where i can see??

In your command file (your 1213640757_FETCH.TXT) put

$ set verify

at the beginning

>>>and also tell me how can i submit this job into another Queue called 'QUEUE'.

$ submit/queue=queue/log=sys$scratch/notify 1213640757_fetch.txt

After the batch job completes,

$ type/page sys$login:1213640757_fetch.log
it depends
Jon Pinkley
Honored Contributor

Re: Batch queue

Also see

$ help hints batch_and_print_jobs

and

$ help submit

And for better tutorial, download the VMS User's Manual in pdf form.

http://h71000.www7.hp.com/doc/731FINAL/DOCUMENTATION/PDF/OVMS_731_USERS.PDF

and read and try things out on your system.
it depends
Jon Pinkley
Honored Contributor

Re: Batch queue

Ramesh,

I see I suggested /log=sys$scratch and then type/page sys$login

That may work, but you should use the same logical for both.

A set of consistent commands:

$ submit/queue=queue/log=sys$scratch/noprint/notify 1213640757_fetch.txt

and to view log

$ type/page sys$scratch:1213640757_fetch.log

If you do not specify either /noprint or /keep the log file will be deleted after it is printed on sys$print

All this is explained better in the VMS User's Manual

Have fun,

Jon
it depends