Kbase 13875: How to wait for OS-COMMAND NO-WAIT to complete in MS-Windows
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
How to wait for OS-COMMAND NO-WAIT to complete in MS-Windows
Under MS-Windows, the NO-WAIT option must be used with the OS-COMMAND
4GL statement. However, there are times when the developer would like
the operating system command to run to completion before continuing to
the next 4GL statement. This cannot be done with the 4GL alone.
There must be some sort of message mechanism in the batch file or .PIF
being run by the OS-COMMAND statement. For example, if the last thing
the called process does is to write "DONE" to a file, the calling 4GL
procedure can loop on an attempt to open that file.
The Progress SEARCH statement can be used to control the looping. ON-
ERROR will not work because only Progress database type of errors are
trapped in the ON-ERROR bucket.
Progress Software Technical Support Note # 13875