Page 1 of 1

What is the difference between STOP and STOP RUN?

PostPosted: Thu Jun 24, 2010 2:35 pm
by ramesh4mainframes
Hi,

As a fresher i know STOP RUN. That will terminates the entire program. If there is no STOP RUN we will get U4038 (User Abend).But i don't know whether STOP is avaiilable or not?

Re: What is the difference between STOP and STOP RUN?

PostPosted: Thu Jun 24, 2010 5:02 pm
by Robert Sample
http://www-01.ibm.com/software/awdtools ... s/library/ is the COBOL library -- bookmark it for future reference.

The STOP statement can be either STOP RUN or STOP <literal> -- if the latter case, execution is suspended while the literal is displayed upon the console and the operator must reply to the message. Production shops do not usually approve of doing this since the operator message may be lost in the console clutter of normal messages.

You can also use EXIT PROGRAM or GOBACK.

Re: What is the difference between STOP and STOP RUN?

PostPosted: Thu Jun 24, 2010 9:13 pm
by Anuj Dhawan
Also, most of the time (I can safely say, always) GOBACK is preferred though.