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.
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.
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: