|
Exit Program is ignored if it occurs in the root program in the COBOL run unit. The code will in fact drop through the statement and (in the case of your earlier code) will hit the implicit STOP RUN which is effectively at the end of each COBOL source. If you replace it with a GO BACK - you will get either a STOP RUN or an EXIT PROGRAM depending on whether you are the root of the run unit or not. Run unit creation is expensive (and its destruction has other implications) so rather than simply add a GO BACK you need to understand what the original code is trying to do. Jon Paris Partner400
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.