Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How can I access LNM$JOB from another job?

2 views
Skip to first unread message

PETROS DAFNIOTIS

unread,
Nov 10, 1994, 1:06:54 PM11/10/94
to
Problem Statement
-----------------

On a VT terminal I have a process A that defines a logical LOGA in the
Job table; this is say LNM$JOB_XXXXXXXX where XXXXXXXX is a job block
number for VMS (or something like that based on the docs).

Now on another VT terminal I login the same account and I can do
a
$ show log/table=LNM$JOB_XXXXXXXX LOGA
and get the correct answer
BUT my question is how do I get the XXXXXXXX number by knowing only the
PID number of the A-process. i.e. I do not want the user to try to
find out the job block number but only the PID of the A-process.

Hope this make some sense. Thank you in advance for any comments/hints/help,

Petros Dafniotis
dafn...@chera6.che.wisc.edu

Jeanell M. LeDoux

unread,
Nov 11, 1994, 11:29:27 AM11/11/94
to
In article <39tnfu$d...@news.doit.wisc.edu> DAFN...@CHERA6.CHE.WISC.EDU (PETROS DAFNIOTIS) writes:
>From: DAFN...@CHERA6.CHE.WISC.EDU (PETROS DAFNIOTIS)
>Subject: How can I access LNM$JOB from another job?
>Date: 10 Nov 1994 18:06:54 GMT


>Hope this make some sense. Thank you in advance for any comments/hints/help,

To make a very long post considerably shorter, here are the hints you
requested:

CMKRNL
EXE$EPID_TO_PCB
PCB$L_JIB

If it turns out you need more than this send me mail and we'll work something
out.

J.

--
You can implement your own custom lexicals on OpenVMS VAX and get 28
examples with source code, online help and a users manual for $99. For
a free 30 day trial kit and some free utilities please direct your WWW
browser to "http://sio.com/cnote/". If you have any questions please
email them to me at cn...@helpmt.sio.com.

Jeanell M. LeDoux Cnote Software 1.800.797.6647

Arne Vajhoej

unread,
Nov 12, 1994, 9:01:58 AM11/12/94
to
> On a VT terminal I have a process A that defines a logical LOGA in the
> Job table; this is say LNM$JOB_XXXXXXXX where XXXXXXXX is a job block
> number for VMS (or something like that based on the docs).
>
> Now on another VT terminal I login the same account and I can do
> a
> $ show log/table=LNM$JOB_XXXXXXXX LOGA
> and get the correct answer
> BUT my question is how do I get the XXXXXXXX number by knowing only the
> PID number of the A-process. i.e. I do not want the user to try to
> find out the job block number but only the PID of the A-process.

The XXXXXXXX is the hexadecimal-string of the JIB-address.

Anonymous FTP to node FTP.HHS.DK directory MISC file GETJIBADR.MAR will
give you code to translate from PID to JIB [CALL GETJIBADR(PID,JIBADR) both
arguments longwords passed by reference].

Arne

Arne Vajhøj local DECNET: KO::ARNE
Computer Department PSI: PSI%238310013040::ARNE
Business School of Southern Denmark Internet: AR...@KO.HHS.DK
WWW URL: http://www.hhs.dk/~arne/arne.html

0 new messages