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

To search which .com procedure is scheduled in queue

 
SOLVED
Go to solution
jess_14
Advisor

To search which .com procedure is scheduled in queue

Hi all,

I want to search whether this abc.com DCL is scheduled to run in queue.

If sh queue/all, I can only see the job name and the schedule time.

Tried this as well:
pipe show que /all | sea sys$Input abc

Still not able to get what i want. Appreciate yr help. Thanks!
9 REPLIES 9
Volker Halle
Honored Contributor

Re: To search which .com procedure is scheduled in queue

Jess,

/ALL just show all jobs from all users (if privs allow).

Add /FULL to see the attributes (including filename) for all queue entries.

Volker.
jess_14
Advisor

Re: To search which .com procedure is scheduled in queue

Thanks Volkler, specifiying /full/all will show a whole list of jobs in all queues.

Can i find only that particular job name which matches the DCL abc.com

Similiarly to UNIX, when crontab -l
I'm able to know directly which scripts is in the scheduled. Not sure whether this can be done in VMS....

35,40,45,50,55 * * * * /scripts/monitoring/myresmon.sh
P Muralidhar Kini
Honored Contributor
Solution

Re: To search which .com procedure is scheduled in queue

Hi Jess,

>> If sh queue/all, I can only see the job name and the schedule time.
This command will only give basic details of various jobs in the queue.
Details such as Entry, Jobname, username ,status.

The /FULL qualifier will give more details such as COM procedure name, logfile name and so on...

To know if a COM procedure is running in a queue,
$SHOW QUEUE/ALL/FULL
-> From this output, check if your COM procedure is listed.
or
$PIPE SHOW QUEUE/ALL/FULL | SEARCH SYS$INPUT ABC

Hope this helps.

Regards,
Murali
Let There Be Rock - AC/DC
P Muralidhar Kini
Honored Contributor

Re: To search which .com procedure is scheduled in queue

Hi Jess,

>> I'm able to know directly which scripts is in the scheduled
Try this command
$PIPE SHOW QUEUE/ALL/FULL | SEARCH SYS$INPUT EXECUTING
This will give you a list of command procedures that are currently executing.
Is this what you were looking for ?

Regards,
Murali
Let There Be Rock - AC/DC
P Muralidhar Kini
Honored Contributor

Re: To search which .com procedure is scheduled in queue

Hi Jess,

Also,
You can use the F$GETQUI lexical in order to get a set of information about
various jobs in the queue.

For more information of F$GETQUI lexical refer DCL help
$HELP LEXICAL F$GETQUI

Check the arguments of the above lexical, it may help you retrieve the
information you are looking for.

Regards,
Murali
Let There Be Rock - AC/DC
Robert Gezelter
Honored Contributor

Re: To search which .com procedure is scheduled in queue

*jess*,

As Murali has noted, the command modifier to show the details of each batch queue entry is /FULL (without the /ALL, SHOW QUEUE will only display jobs belonging to the user issuing the command).

For a one-time or infrequent requirement, I would use the piped solution of processing the output of the SHOW QUEUE/ALL/FULL command (or use the an editor on the output if I wanted more details about matching jobs).

If this is a constant requirement, I would consider using F$GETQUI in DCL or a conventional program using the OpenVMS library services.

- Bob Gezelter, http://www.rlgsc.com
Hoff
Honored Contributor

Re: To search which .com procedure is scheduled in queue

Purge your brain of how Linux and Unix deal with this; that recollection leads to discomfort and pain.

Others have described aspects of how this batch scheduling is usually implemented on-site, using DCL and the SUBMIT /AFTER and analogous commands.

The default VMS scheduling mechanisms are most charitably referred to as weak; it's arguably inferior to even Vixie cron, and nowhere near what you can implement with a modern scheduling package.

As for options, you can get a (free) cron port or there's the (free) Kronos tool for OpenVMS, and there are various commercial scheduling packages available from vendors.

But by default? The available scheduling is most charitably referred to as rather lame; it's usually based on a self-requeing batch job with locally-implemented or no error recovery available using DCL, and with the occasional issues around jobs lost during ill-timed restarts and other such.

Some related reading:

http://labs.hoffmanlabs.com/node/97
http://labs.hoffmanlabs.com/node/501
http://labs.hoffmanlabs.com/node/872
http://labs.hoffmanlabs.com/node/1053

Andy Bustamante
Honored Contributor

Re: To search which .com procedure is scheduled in queue

Jess,

You can also use

$ show queue /all /files

and combine that with pipe and search as well.

More information is available with

$ help show queue

OpenVMS help is the place to start. If you're not sure where to start, try

$help hints

The documenation set is availble at http://h71000.www7.hp.com/doc/index.html

Andy
If you don't have time to do it right, when will you have time to do it over? Reach me at first_name + "." + last_name at sysmanager net
jess_14
Advisor

Re: To search which .com procedure is scheduled in queue

Thanks for all your reply. This is really helpful n I have definitely gained a lot.

Thanks!