![]() |
![]() HP OpenVMS Systemsask the wizard |
![]() |
The Question is: How do I determine from within a DCL command procedure if a specific job in already in a queue? I want to submit a job to the queue, only if it is not already there. I have the job name in a variable. I am aware of the function of the SHOW ENTRY command. I was hoping to not have to use the /OUTPUT option on the SHOW ENTRY [jobname] command and then read the file. I would prefer some kind of logical test or status return from a function to tell if the job is already in the queue. Here is my sample code to submit my job: $! CALL EXAMPLE: $! $! @FF_COM:SUBMIT_SENDALLTOHOST BRS MW_RETRY: $! $ SET NOON $! $ PROCESSNAME = "SEND_" + P1 + "_" + F$EXTRACT(0,F$LOCATE(":",P2),P2) $ LOGFILENAME = "FF_OUTPUT:" + PROCESSNAME + ".LOG" $! $ SUBMIT - /PARAMETERS=('P1,'P2) - /LOG='LOGFILENAME' - /AFTER="+00:01" - /WSDEFAULT=4096 - /WSQUOTA=8192 - /WSEXTENT=16384 - /NOPRINTER - /NAME='PROCESSNAME' - FF_COM:SENDALLTOHOST.COM $! $ EXIT The Answer is : Existing discussions of the f$getqui lexical include the following topics: (813), (1240), (2159), (3951), (4546), (4568), (4903), (5188) (5471), (5567), (5651), (5793), (5982), (6315), (6877), (8796), (9130), etc. Also see topics such as (9375) and (8830). Scheduling tools such as the Freeware Kronos package, cron ports, and various commercial applications are also available, as is the DCL command SYNCHRONIZE. General information on batch entry numbers are available in topics including (7456).
|