HP OpenVMS Systemsask the wizard | 
	
 The Question is: 
 
 
I want to obtain all jobs on all BATCH queues that are on "HOLD" ...
 
The command file contains...and does not work
properly
 
set noon
$ MSG := "write sys$output"
$ GET_QUEUE:
$ QNAME = F$GETQUI("DISPLAY_QUEUE","QUEUE_NAME","*","BATCH")
$ IF QNAME .EQS. "" THEN GOTO END_QUEUE
$ MSG " "
$ MSG " Working on Queue: ", QNAME
 
$ FIND_JOBS:
$ JOBNAM = F$GETQUI("DISPLAY_JOB","JOB_STATUS",,"TIMED_RELEASE_JOBS")
$ IF JOBNAM .EQS. "" THEN GOTO GET_QUEUE
 
$ ENTRY_NUMBER = F$GETQUI("DISPLAY_JOB","ENTRY_NUMBER",,"FREEZE_CONTEXT,ALL_JOB
$ MSG " "
$ MSG "Entry: ''ENTRY_NUMBER' Holding Job: ''JOBNAM'"
 
 
 
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), etc. 
 
 
  |