× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Try allocate the program object....ALCOBJ command.....(*EXCL) exclusive...

If able to allocate the object then, therefore it's not used currently....

If unable to allocate the object then, therefore it's in use on the system somewhere....

Make sure to deallocate the object when allocate is succesful.....

Try it...

Cheers!

Vasant

Bob cozzi wrote:

One way to do that is to send a program message to the program and then do a
receive message (using the message key) to see if the message was received
by the program you were looking for.


Bob Cozzi Cozzi Consulting www.rpgiv.com


-----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Tom Liotta Sent: Wednesday, October 22, 2003 2:51 PM To: rpg400-l@xxxxxxxxxxxx Subject: RE: Best way to check if a certain program is running

rpg400-l-request@xxxxxxxxxxxx wrote:



 2. Re: Best way to check if a certain program is running
    (David Gibbs)

Malchow, Grizzly wrote:


I'm trying to find a command or API that I can use that will let me know
if a program is currently running. Does anyone know of one that I could
use in a program that would do that? The command or API will need to
take place behind the scenes, so I'm not looking for an interactive
command.


In the current job or another job?



Actually executing instructions or just anywhere in a call stack? Only in active activation groups or merely in an activation group that hasn't been reclaimed yet?

I.e., what exactly is meant by "running"? Or maybe better, what need is
being addressed? There may be alternatives that can be used.

Tom Liotta







As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.