I am working with a legacy code which contains the line "CALL EXIT" to quit the program when an error is encountered. Can someone explain the difference between "CALL EXIT" and STOP?
Thanks....
Link Copied
STOP is standard, CALL EXIT is an extension. STOP lets you display a text message where EXIT doesn't. Both let you set an exit status value. Otherwise they are pretty much the same.
For more complete information about compiler optimizations, see our Optimization Notice.