RE: [U2] Log Process ID for Phantom in UV 10

2006-01-19 Thread James Cowell
There is a GCI call, getpid(), that you can use to get your process id.

DECLARE GCI getpid
CRT getpid()
END

James


-Original Message-
From: Baker Hughes [mailto:[EMAIL PROTECTED]
Sent: 19 January 2006 17:06
To: u2-users@listserver.u2ug.org
Subject: [U2] Log Process ID for Phantom in UV 10


I seem to recall in UD a SYSTEM(nn) function that holds the Unix PID.  I
can't find the UV equivalent.  It doesn't show in the docs to have one.

When a phantom is spawned I want that phantom to write it's PID to a
control item, along with start time, and later, the end time.

Thanks Y'all.

R. Baker Hughes
UniVerse Programming
Mouser Electronics, Inc.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


**
The contents of this e-mail are subject to contract in all cases and William 
Hill PLC, its subsidiaries or affiliates make no contractual commitment save 
where confirmed by hard copy.  

The contents of this e-mail do not necessarily represent the views of William 
Hill PLC, its subsidiaries or affiliates.  We accept no liability, including 
liability for negligence, in respect of any statement in this e-mail. 
This e-mail and any files transmitted with it are confidential, may be subject 
to legal privilege and intended solely for the use of the individual or entity 
to which they are addressed.  If you are not the intended recipient, you are 
hereby notified that any use or dissemination of this communication is strictly 
prohibited.  If you have received this e-mail in error, please notify us 
immediately, then delete this e-mail.  

Please note that William Hill can accept no responsibility for viruses and it 
is your responsibility to scan any emails and their attachments.

This message was from William Hill PLC whose registered office is Greenside 
House, 50 Station Road, Wood Green, London N22 7TP.  Company Registration 
Number: 4212563 England.
**
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Log Process ID for Phantom in UV 10

2006-01-19 Thread Timothy Snyder
Baker Hughes wrote on 01/19/2006 12:05:40 PM:

 I seem to recall in UD a SYSTEM(nn) function that holds the Unix PID.  I
 can't find the UV equivalent.  It doesn't show in the docs to have one.

In UniData it's @USERNO.  In UniVerse you have to use a GCI call.  Try the 
following:

DECLARE GCI getpid
pid = getpid()


Tim Snyder
Consulting I/T Specialist , U2 Professional Services
North American Lab Services
DB2 Information Management, IBM Software Group
717-545-6403
[EMAIL PROTECTED]
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Log Process ID for Phantom in UV 10

2006-01-19 Thread Baker Hughes
Poifect.

Thanks James.

R. Baker Hughes
UniVerse Programming
Mouser Electronics, Inc.

There is a GCI call, getpid(), that you can use to get your process id.

DECLARE GCI getpid
CRT getpid()
END

James
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Log Process ID for Phantom in UV 10

2006-01-19 Thread Baker Hughes
Thanks Tim. That's a 2nd witness ... confirms our plan.

R. Baker Hughes
UniVerse Programming
Mouser Electronics, Inc.

In UniData it's @USERNO.  In UniVerse you have to use a GCI call.  Try
the 
following:
DECLARE GCI getpid
pid = getpid()

Tim Snyder
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/