By default, when a HOST command in Oracle Forms is run such as host(lv_host_command,no_screen), it does not come back with any return or error code. However, there are a couple options you can use to obtain error codes if a failure was to happen:

  • Modify the script and log all messages in a file. After executing the module(s), check the log file to see the results.
  • You can also implement a C program that is executed from Forms and returns the error code back to forms.