The EXIT subroutine causes program execution to terminate with an exit code.
Syntax EXIT (ilevel)
EXIT (ilevel)
ilevel is an INTENT(IN) scalar of type INTEGER. It sets the value of the program's exit code.
Example call exit(3) ! exit -- system error level 3