How to get PID in QUICK /OpenVMS
Chris Sharman
chris.sharman@ccagroup.co.uk
Fri, 6 Dec 2002 09:06:55 -0000
> -----Original Message-----
> From: Edis, Bob [mailto:bedis@usbnc.org]
> I would use a RUN COMMAND to create a JOB logical that contains
> the PID and then read that logical in Quick syntax.
>
> RUN COMMAND "<DCL syntax to SET logical JPI$_PID to PID using
> F$GETJPI("", "pid") command>"
If you want to do it this way, it would have to be f$getjpi("","owner") to
take account of the fact that you've spawned a subprocess.
I'd be inclined to use do external, as another poster suggested, or 'pid =
f$getjpi("","pid")' before invoking quick.
But why do you want it ?
It's only really useful in external procedures, or run commands, or possibly
to generate a unique string.
Chris
-----------------------------------------------------------------------
Any views expressed in this message are those of the sender and not
necessarily those of CCA Group. The unauthorized use, disclosure,
copying or alteration of this message is forbidden. The contents of
this message may be confidential and/or privileged, copyright CCA Group
and are intended solely for the use of the individual or entity to whom
they are addressed. Whilst this message has been scanned, CCA Group
cannot guarantee that it is virus free or compatible with your systems
and accepts no responsibility for any loss or damage arising from its
use. The recipient is advised to run their own anti-virus software. If
you receive this message in error please contact
postmaster@ccagroup.co.uk immediately, destroy any copies and delete it
from your computer systems.