There is a distinction between errors occurring in the request handling by WindowsEnabler and errors occurring during the program execution on the PC. Errors occurring during program execution cannot be detected by WindowsEnabler, other than by the return values that are send by the program.
When an error, for example a bad command line occurs during the request handling WindowsEnabler sends a negative action notification. You can determine the exact cause of the errors by looking at the diagnostic messages that are included in this notification.
If no errors occurred in the handling of the request, you will receive a positive action notification. For program requests, if you wait for completion through the WAIT(*YES) parameter you will receive this notification after the program has completed. Otherwise you will receive this notification after the program has been started.
If you receive a positive action notification, you can determine the PC return value. This return value is included in the notification message.