Skip to main content

[archive] Inside AcuCobol: Who's Running What

  • May 9, 2007
  • 6 replies
  • 0 views

[Migrated content. Thread originally posted on 08 May 2007]

Hi,

I am using AcuCobol GT 7.2.0 and would like to know, if there is any way, I can ascertain who is running what programs on the system at any moment?

We use Citrix here to drive the AcuCobol environment and everyone shows up as WRUN32, which is the proper runtime to windows. But within the WRUN32 can I find out what Acucobol program is currently active for each and every user?

Thanks

6 replies

[Migrated content. Thread originally posted on 08 May 2007]

Hi,

I am using AcuCobol GT 7.2.0 and would like to know, if there is any way, I can ascertain who is running what programs on the system at any moment?

We use Citrix here to drive the AcuCobol environment and everyone shows up as WRUN32, which is the proper runtime to windows. But within the WRUN32 can I find out what Acucobol program is currently active for each and every user?

Thanks
The Windows terminal server API provides you functions to enumerate remote users and processes. These can be used to determine what users.
There is however no such thing to identify the program. If you want to do that, you will have to put a code, for instance PG001 in the Windows title, this can be achieved by enumerating the process Windows' and then inquiring for each window title.
All of this, of course provided that you have sufficient privileges.

[Migrated content. Thread originally posted on 08 May 2007]

Hi,

I am using AcuCobol GT 7.2.0 and would like to know, if there is any way, I can ascertain who is running what programs on the system at any moment?

We use Citrix here to drive the AcuCobol environment and everyone shows up as WRUN32, which is the proper runtime to windows. But within the WRUN32 can I find out what Acucobol program is currently active for each and every user?

Thanks
G...

We have a Windows Server appl series of pgms, where there are situations in testing when batch jobs running a series of various called sub-programs, may run into a bug, that causes the process-wrun32 to loop, and the job has to be killed.

Is there any way at the time the wru32 is killed or shutdown, whereby at Prog End we can get into a declarative procedure and write out to a syserr, event viewer, or other log file some where the name of the last or current program, or better yet the stack of called programs.

Any suggestions how to capture the name of the last pgm running, so we could have a trail back to the unique pgm that was looping. thx...

[Migrated content. Thread originally posted on 08 May 2007]

Hi,

I am using AcuCobol GT 7.2.0 and would like to know, if there is any way, I can ascertain who is running what programs on the system at any moment?

We use Citrix here to drive the AcuCobol environment and everyone shows up as WRUN32, which is the proper runtime to windows. But within the WRUN32 can I find out what Acucobol program is currently active for each and every user?

Thanks
I figure you may be able to use the CBL_ERROR_PROC (see library routines in the documentation for details) and/or the ABEND diagnostic report facility (see chapter 3.1.9, debugger and utilities) for this. Give it a shot.

[Migrated content. Thread originally posted on 08 May 2007]

Hi,

I am using AcuCobol GT 7.2.0 and would like to know, if there is any way, I can ascertain who is running what programs on the system at any moment?

We use Citrix here to drive the AcuCobol environment and everyone shows up as WRUN32, which is the proper runtime to windows. But within the WRUN32 can I find out what Acucobol program is currently active for each and every user?

Thanks
Might depend on quite what you're looking for.

For instance, from the DOS prompt:

TLIST /v | find /i "wrun32"

should show you the username and window-title for running WRUN32s.

[Migrated content. Thread originally posted on 08 May 2007]

Hi,

I am using AcuCobol GT 7.2.0 and would like to know, if there is any way, I can ascertain who is running what programs on the system at any moment?

We use Citrix here to drive the AcuCobol environment and everyone shows up as WRUN32, which is the proper runtime to windows. But within the WRUN32 can I find out what Acucobol program is currently active for each and every user?

Thanks
TLIST is from what OS???

Pete

[Migrated content. Thread originally posted on 08 May 2007]

Hi,

I am using AcuCobol GT 7.2.0 and would like to know, if there is any way, I can ascertain who is running what programs on the system at any moment?

We use Citrix here to drive the AcuCobol environment and everyone shows up as WRUN32, which is the proper runtime to windows. But within the WRUN32 can I find out what Acucobol program is currently active for each and every user?

Thanks
Hmmm..

Make that

TASKLIST /v|find /i "wrun32"

TLIST was provided with NT and replaced by TASKLIST in XP.