Skip to main content

I want to be able to have Program A kick Program B off as a thread, have program b stores its pid in a database record such that program a can be invoked at a later time to kill Program B

We are using version 9.2.1, 9.2.3 and 10.1

Acugt and acu4gl

Jim

I want to be able to have Program A kick Program B off as a thread, have program b stores its pid in a database record such that program a can be invoked at a later time to kill Program B

We are using version 9.2.1, 9.2.3 and 10.1

Acugt and acu4gl

Jim

Yes it can with C$PID and using de windows command TASKLIST and TASKKILL. The last 2 you use C$SYSTEM.

Yes it can with C$PID and using de windows command TASKLIST and TASKKILL. The last 2 you use C$SYSTEM.
thank you , I will look for sample code.
jim

thank you , I will look for sample code.
jim

Could you provide an example of acugt cobol requesting the pid under windows?

 

Server 2012 for example


Could you provide an example of acugt cobol requesting the pid under windows?

 

Server 2012 for example

Yes, it can, use C$GETPID.

Could you provide an example of acugt cobol requesting the pid under windows?

 

Server 2012 for example

identification division.
program-id. getpid.

data division.
working-storage section.
01 pid pic 9(5).

procedure division.
main-logic.
call "C$GETPID" giving pid
display "the PID of this process is: ", pid
accept omitted
stop run
.


identification division.
program-id. getpid.

data division.
working-storage section.
01 pid pic 9(5).

procedure division.
main-logic.
call "C$GETPID" giving pid
display "the PID of this process is: ", pid
accept omitted
stop run
.

Thank you

I shall try that.

 

Jim


Thank you

I shall try that.

 

Jim

It worked perfectly THANKS!