skip to main content

Procedure Division Statements : WAIT

WAIT
General Format
WAIT FOR { THREAD Thread-Id } 
         { LAST THREAD      } 
  [ ON EXCEPTION Imperative-Statement-1 ] 
  [ NOT ON EXCEPTION Imperative-Statement-2 ] 
  [END-WAIT]
Remaining-Phrases are optional and can appear in any order.
  { BEFORE TIME Timeout }
  { TEST ONLY           }
  THREAD IN Thread-2
  SIZE IN Size-Item
  STATUS IN status-item
Syntax rules
1.
2.
3.
4.
General rules
1.
A.
B.
2.
3.
4.
5.
6.
7.
8.
Examples
Wait for a thread to finish, in this sample the other thread has its hanlde in loop-thread-handle
wait for thread loop-thread-handle
     on exception
       display message " Loop thread finished, finishing this thread now"

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left