On Monday 18 May 2009 16:09, Bill Klein wrote:

> Why do you say that you MUST remove "STOP RUN" statements from (COBOL)
> source in a VSE to z/OS conversion.  There may be times and environments
> that you may want to do this - and using GOBACK will never hurt, but I
> seriously question the "universal MUST remove" statement.

Agreed.  However, there are "bizarre" cases like this one:

OPEN FILEIN. IF STATUS-RC > '00' THEN DISPLAY 'OPEN ERROR', STOP RUN.

In that case, converting STOP RUN to GOBACK would not be a good choice, to say 
the least.  A good solution would be to convert STOP RUN to CALL 'ABEND' or 
something like that.  This is one of the types of situation I saw in a few 
projects and call "bizarre".

-- 
 Gilbert Saint-Flour
 GSF Software
 http://gsf-soft.com/

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to