Return code

from Wikipedia, the free encyclopedia

As a return code - English for return status or return value - or exit status is widely used in software development refers to a brief response, usually a numerical value to a (minor) process returns after his execution to his (parent) caller.

more details

If in a computer program , a process a new process starts, the caller is the parent process and the called child process called. Each child process returns a message (the return code ) to the parent process when it is terminated , which it can use to tell it how the child process ran. In this way, it can be reported whether the process ran correctly or whether an error occurred. Further qualifying information is possible, for example references to warnings or incomplete processing. Based on this feedback, the parent process can decide on the further course of the program.

Implementations

  • in C and C ++ the constants EXIT_SUCCESSandEXIT_FAILURE
  • in ABAP there is a global system variableSY-SUBRC
  • The variable is reserved for this in REXXRC
  • in Turbo Pascal there is a variable for many I / O callsIOResult

See also

Individual evidence

  1. IBM Knowledge Center - Client return codes. IBM , accessed February 13, 2017 .