Operating System - OpenVMS
1832964 Members
2398 Online
110048 Solutions
New Discussion

Re: determine a specific job in que is running using lexicals

 
FOX MULDER_2
Frequent Advisor

determine a specific job in que is running using lexicals

Using lexicals how to determine the status of a job in a que is executing or not.
Please let me know.

thanks.
2 REPLIES 2
labadie_1
Honored Contributor

Re: determine a specific job in que is running using lexicals

Hello

You will use the lexical f$getqui, see

$ help lex f$getqui

You can find many examples on dcl.openvms.org, see

http://dcl.openvms.org/search.php?query=f%24getqui&what=stories&limit=100

Karl Rohwedder
Honored Contributor

Re: determine a specific job in que is running using lexicals

Attached is a code snippet from a routine which
- checks if specified queue is valid batchqueue
- checks if job is already subbmitted
- compares file_id, to check if newer version exists and resubmit

This should give you an idea how to solve your problem.

regards Kalle

P.S. the code is quite old and was not created to win a beauty contest...