VMS Help  —  CRTL  wait  Return Values
    x                  The process ID (PID) of the terminated child.
                       If more than one child process was created,
                       wait will return the PID of the terminated
                       child that was most recently created.
                       Subsequent calls will return the PID of the
                       next most recently created, but terminated,
                       child.
    -1                 No child process was spawned.
Close Help