From: SMTP%"RELAY-INFO-VAX@CRVAX.SRI.COM" 25-AUG-1993 09:10:12.29 To: EVERHART CC: Subj: Re: Doing something like SHOW LOGICAL /STRUCTURE from VAX C ??? Date: Sun, 22 Aug 1993 16:28:13 +0100 From: Arne Vajhxj Subject: Re: Doing something like SHOW LOGICAL /STRUCTURE from VAX C ??? To: KARGL@MAIN01.RZ.UNI-ULM.DE, INFO-VAX@sri.com Message-Id: <01H21W07GYLU9LVIFZ@kopc.hhs.dk> X-Vms-To: KOPC::IN%"KARGL@MAIN01.RZ.UNI-ULM.DE" X-Vms-Cc: IN::"INFO-VAX@SRI.COM" Mime-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-1 Content-Transfer-Encoding: 8BIT > I have a little problem. I want to access a temporary mailbox from a > process in a different job than the one, creating the mailbox. As I don't > have any special priviliges (just TMPMBX) I thought of getting the > Mailbox-Device-Name via a logical in the job-table of the job creating the > mailbox. A SHOW LOGICAL /STRUCTURE command reveals all the job-table-names > like : > > (LNM$JOB_82CB9710) > (LNM$JOB_82D4AE40) > (LNM$JOB_82E42900) > > So I could scan these few tables for the apropriate logical. The only > problem : How do I something similar to SHOW LOGICAL /STRUCTURE using > system services ? 1) You can not do a wildcard lookup of logicals with SYS$TRNLNM (and SHOW LOG/STRUC is an implicit wildcard lookup). 2) You can code a wildcard lookup yourself WITH PRIVS. 3) The 8 hex digit number is the address og the JIB and it is possible to translate from PID to JIB-address WITH PRIVS. 4) The easiest way to pass that mailbox-name is to use a file. It is not fast but it is simple and easy to implement. 5) If the two processes are in the same UIC-group, you can create a global section and use that (either only to pass the mailbox-name or as a total replacement for mailboxes). This does not need privs. 6) You can use SYS$DEVICE_SCAN to get a list of all mailbox'es and use SYS$GETDVIW to get information about them to find the rigth one. The documentation says that this does not need privs, but I find the solution a little too complex. Hope it helps ! Arne Arne Vajhxj local DECNET: KO::ARNE Computer Department PSI: PSI%238310013040::ARNE Business School of Southern Denmark Internet: ARNE@KO.HHS.DK