This command loads the name of the thread on which the Script is currently executing, into a character variable.
Declare the character variable at 32 bytes long, using the CHARACTER*32 command. 32 bytes should be long enough to handle most thread names.
The thread name will be truncated as required to fill the target variable if you do not declare a value large enough to cope with the thread names.
LOAD THREAD INTO variable
A character variable into which the thread name is loaded.
LOAD THREAD INTO Thread-Name