>>-THREADID--(--x--)-------------------------------------------><
The value returned by this built-in function can be used to invoke system functions, such as DosSetPriority, on Windows, or posix functions on z/OS.
To obtain the system thread identifier for the currently executing thread, you must invoke the function appropriate for the platform on which that thread is running. So, on Windows, you should invoke GetCurrentThreadId, and on z/OS, you should invoke pthread_self.