Skip to main content

how do I stop a process running with the thread?

I tried with stop thread but it does not work..

how do I stop a process running with the thread?

I tried with stop thread but it does not work..

Have you tried specifying a THREAD-ID? - https://www.microfocus.com/documentation/extend-acucobol/1040/extend-interoperability-suite/BKRFRFPROC00000001S216.html

A Format 3 STOP THREAD statement cancels (destroys) a thread. thread-id identifies the thread to cancel. If thread-id is omitted, the currently executing thread is cancelled.

If it is not working as expected, please raise a case in the support portal, uploading a sample program that shows the issue.

Thank you


Have you tried specifying a THREAD-ID? - https://www.microfocus.com/documentation/extend-acucobol/1040/extend-interoperability-suite/BKRFRFPROC00000001S216.html

A Format 3 STOP THREAD statement cancels (destroys) a thread. thread-id identifies the thread to cancel. If thread-id is omitted, the currently executing thread is cancelled.

If it is not working as expected, please raise a case in the support portal, uploading a sample program that shows the issue.

Thank you

my  cbl example :  

PERFORM THREAD THREAD-EXAMPLE

STOP THREAD THREAD-EXAMPLE 

stop thread does not compile... 


my  cbl example :  

PERFORM THREAD THREAD-EXAMPLE

STOP THREAD THREAD-EXAMPLE 

stop thread does not compile... 

Is THREAD-EXAMPLE supposed to be the handle?

You should check the docs here - www.microfocus.com/.../BKRFRFPROC00000001S160.html


Is THREAD-EXAMPLE supposed to be the handle?

You should check the docs here - www.microfocus.com/.../BKRFRFPROC00000001S160.html

yes is "thread-example" to be handle


yes is "thread-example" to be handle

In that case you need to define it as a handle in the statement. Please check the docs for the correct usage.

Currently you are asking it to PERFORM the handle THREAD-EXAMPLE in a thread so that's probably why you have a compile error. I am guessing your compiler error says:

Undefined procedure: THREAD-EXAMPLE