- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Displaying JOB_SIZE with F$GETQUI
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2006 06:59 PM
тАО02-06-2006 06:59 PM
Displaying JOB_SIZE with F$GETQUI
Anyway,
does anyone know how to go from F$GETQUI/DISPLAY_ENTRY to F$GETQUI/DISPLAY_JOB/JOB_SIZE without having to rescan the database?
Doing it like this gives me "%JBC-E-NOQUECTX, no queue context" :-
$ JOB_FORM = F$GETQUI("DISPLAY_ENTRY","FORM_NAME","''ENTRY'","WILDCARD,ALL_JOBS")
$ JOB_SIZE = F$GETQ("DISPLAY_ENTRY","JOB_SIZE","''ENTRY'","WILDCARD,ALL_JOBS")
$ !
Cheers, Rob.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2006 07:00 PM
тАО02-06-2006 07:00 PM
Re: Displaying JOB_SIZE with F$GETQUI
$ JOB_FORM = F$GETQUI("DISPLAY_ENTRY","FORM_NAME","''ENTRY'","WILDCARD,ALL_JOBS")
$ JOB_SIZE = F$GETQ("DISPLAY_JOB","JOB_SIZE","''ENTRY'","WILDCARD,ALL_JOBS")
$ !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2006 07:07 PM
тАО02-06-2006 07:07 PM
Re: Displaying JOB_SIZE with F$GETQUI
ALPHA_ROB$ $ JOB_ENTRY = F$GETQUI("DISPLAY_ENTRY","ENTRY_NUMBER","''ENTRY'")
ALPHA_ROB$ $ 'DEBUG' SH SYM JOB_ENTRY
JOB_ENTRY = 877 Hex = 0000036D Octal = 00000001555
ALPHA_ROB$ $ !
ALPHA_ROB$ $ JOB_FORM = F$GETQUI("DISPLAY_ENTRY","FORM_NAME","''ENTRY'","WILDCARD,ALL_JOBS")
ALPHA_ROB$ $ 'DEBUG' SH SYM JOB_FORM
JOB_FORM = "OCE_A4"
ALPHA_ROB$ $ !
ALPHA_ROB$ $ JOBFILE_FILESPEC = F$GETQ("DISPLAY_FILE","FILE_SPECIFICATION",,"FREEZE_CONTEXT,ALL_JOBS")
ALPHA_ROB$ $ 'DEBUG' SH SYM JOBFILE_FILESPEC
JOBFILE_FILESPEC = "_$1$DGA20:[SPOOL.070206]TWXP_X.TW3_07F3459;1"
ALPHA_ROB$ $ !
ALPHA_ROB$ $ JOB_SIZE = F$GETQ("DISPLAY_ENTRY","JOB_SIZE","''ENTRY'")
ALPHA_ROB$ $ 'DEBUG' SH SYM JOB_SIZE
JOB_SIZE = 167 Hex = 000000A7 Octal = 00000000247
ALPHA_ROB$ $ !
I wish someone would rewrite GF$GETQUI and make it a bit more logical. It's one of the few areas of VMS that just doesn't 'feel right'.
Rob.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2006 07:08 PM
тАО02-06-2006 07:08 PM
Re: Displaying JOB_SIZE with F$GETQUI
did you check the examples:
$ HELP LEX F$GETQUI EXAMPLES
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2006 07:10 PM
тАО02-06-2006 07:10 PM
Re: Displaying JOB_SIZE with F$GETQUI
if you know the entryumber, a simple
$ say F$getqui("display_entry","job_size","459")
25
would suffice.
If you get the entrynumber by a F$GETQUI loop, you should enter a f$getqui("cancel_operation") before to exit the context.
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2006 07:13 PM
тАО02-06-2006 07:13 PM
Re: Displaying JOB_SIZE with F$GETQUI
Have a look at the online help - I am fairly sure there used to be some examples.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2006 10:03 PM
тАО02-06-2006 10:03 PM
Re: Displaying JOB_SIZE with F$GETQUI
http://dcl.openvms.org/stories.php?story=05/06/23/3527566
for one example. F$GETQUI is always fun :-)
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2006 02:00 AM
тАО02-07-2006 02:00 AM
Re: Displaying JOB_SIZE with F$GETQUI
$! time_of_day_message.com -- generate time of day welcome message for
$! any process mode
$!
$! TARGET_INCLUDE = TOOLS_TARGETS.COM
$!
$ vfl = f$ver(0+f$trnlnm("debug$login"))
$ wo = "write sys$output "
$ bl = " "
$ null = ""
$ user_name = "''username'"
$ if user_name.eqs."" then $ user_name = f$getjpi("","USERNAME")
$ time = f$getjpi("","LOGINTIM")
$ arch = f$getsyi("Arch_NAME")
$ process_name = f$getjpi(null,"PRCNAM")
$ mode = f$mode()
$ HOURS = F$EXTRACT(12,2,TIME)
$ IF HOURS.GE.12 THEN $ GOTO AFTERNOON
$ MESSAGE = "Good Morning"
$ goto message
$AFTERNOON:
$ IF HOURS.GT.18 THEN GOTO EVENING
$ MESSAGE = "Good Afternoon"
$ goto message
$EVENING:
$ MESSAGE = "Good Evening"
$MESSAGE:
$ node = f$edit(F$GETSYI("NODENAME"),"TRIM")
$ len_mod = 1
$ set noon
$ mode = f$mode()
$ goto mess_'MODE'
$MESS_OTHER:
$MESS_DETACHED:
$ job = f$getjpi("","PRCNAM")
$ lgin_msg = bl+mode+" process "+job+" started at "+time+" on "+arch+" node "+node
$ goto center
$MESS_NETWORK:
$ job = f$getjpi("","PRCNAM")
$ lgin_msg = bl+mode+" process "+job+" started at "+time+" on "+arch+" node "+node
$ goto center
$MESS_BATCH:
$ set output_rate=0:0:15
$ queue = "BATCH"
$ job_queue_name = f$getqui("DISPLAY_JOB","QUEUE_NAME",,"THIS_JOB")
$ job_entry = f$getqui("DISPLAY_JOB","ENTRY_NUMBER",,"THIS_JOB")
$ job_submit_time = f$getqui("DISPLAY_JOB","SUBMISSION_TIME",,"THIS_JOB")
$ job_name = f$getqui("DISPLAY_JOB","JOB_NAME",,"THIS_JOB")
$ job_msg = "Job "+job_name + ", # "+f$edit(Job_entry,"collapse,trim")
$ queue_msg = job_queue_name+ ", Submitted at "+job_submit_time
$ queue_name = job_queue_name
$ if queue.eqs.null then $ queue = "DETACHED"
$ lgin_msg = f$fao("!AS!/!AS",mode+" "+job_msg+" started at "-
+time+" on "+arch+" node "+node," from QUEUE "+queue_msg)
$ len_mod = 2
$ GOTO center
$MESS_INTERACTIVE:
$ term = f$getdvi("tt","DEVNAM") - "_"-"_"-":"
$ lgin_msg = bl+user_name+" logged in at "+time+" on node "+node+" from "+term
$CENTER:
$ STRLEN=(F$LENGTH(lgin_msg)/len_mod-F$LENGTH(MESSAGE))/2
$ blk_str = f$fao("!#* ",strlen)
$ if (mode.eqs."INTERACTIVE")
$ then
$ wo blk_str,message
$ endif
$END_TOD:
$ border = f$fao("!#*=",75)
$ wo border
$ wo lgin_msg
$ wo border
$ EXIT !'f$ver(vfl)'
$!Last Modified: 14-DEC-2004 19:03:44.19
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2006 02:12 AM
тАО02-07-2006 02:12 AM
Re: Displaying JOB_SIZE with F$GETQUI
http://dcl.openvms.org/stories.php?story=05/04/04/4429625
and
http://dcl.openvms.org/stories.php?story=03/09/23/1819255
Robert